The beast is now afraid of the portal
This commit is contained in:
parent
cc673a5c7a
commit
cd51424f7c
1 changed files with 7 additions and 0 deletions
|
|
@ -479,6 +479,13 @@ class BHB(Friendly):
|
|||
|
||||
meadow = self.global_search("mp05")
|
||||
cave = self.global_search("mp07")
|
||||
|
||||
if 'portal_open' in self.location:
|
||||
msg = f"The {noun} becomes frightened of the flying lights."
|
||||
self.location.msg_contents(msg)
|
||||
self.move_to(cave, move_type="traverse")
|
||||
return
|
||||
|
||||
if self.db.is_awake and self.location != meadow:
|
||||
self.move_to(meadow, move_type="traverse")
|
||||
elif not self.db.is_awake and self.location != cave:
|
||||
|
|
|
|||
Loading…
Reference in a new issue