adonthell-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[adonthell-wastesedge-commits] Release_0-3-4 474606c 09/22: FIXED can't


From: Kai Sterker
Subject: [adonthell-wastesedge-commits] Release_0-3-4 474606c 09/22: FIXED can't leave through door when coming through window and S. is free (thanks Leif Thande)
Date: Mon, 25 Jul 2016 18:15:49 +0000 (UTC)

tag: Release_0-3-4
commit 474606c35603d8e9b489658a47834421c16dca78
Author: Kai Sterker <address@hidden>
Commit: Kai Sterker <address@hidden>

    FIXED can't leave through door when coming through window and S. is free 
(thanks Leif Thande)
---
 scripts/game_events/silverhair_to_fst.py |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/scripts/game_events/silverhair_to_fst.py 
b/scripts/game_events/silverhair_to_fst.py
index 9a024d0..0b594d5 100644
--- a/scripts/game_events/silverhair_to_fst.py
+++ b/scripts/game_events/silverhair_to_fst.py
@@ -32,9 +32,10 @@ class silverhair_to_fst:
 
     def run (self, submap, x, y, dir, name):
         p = adonthell.gamedata_get_character (name)
-
+        free = adonthell.gamedata_get_quest ("demo").get_val("silverhair_free")
+        
         # -- Jelom not convinced of Silverhair's innocence
-        if p.get_val ("came_from_barn") == 1:
+        if p.get_val ("came_from_barn") == 1 and not free:
             p.stand ()
             p.go_south ()
             p.speak (_("I better leave the way I came."))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]