Try to address bug #11857 by ensuring that liches will activate...

...even if the user takes the sneak path before passing through the
magically sealed doors.  If this doesn't fix the problem we've got a
bug in the interpretation of [enable_recruit].
This commit is contained in:
Eric S. Raymond 2008-08-14 18:54:43 +00:00
parent b015fdb8e0
commit d4b4f00cc3
2 changed files with 45 additions and 17 deletions

View File

@ -39,7 +39,7 @@
name=_"Karrag"
profile=portraits/karrag.png
canrecruit="1"
side="2"
side="2" # ACTIVATE_LICHES macro depends on this value
colour=black
controller="ai"
team_name="evil"
@ -122,7 +122,7 @@
id="Fleleen"
name=_"Fleleen"
canrecruit="1"
side="6"
side="6" # ACTIVATE_LICHES macro depends on this value
controller="ai"
team_name="evil"
user_team_name=_"Evil"
@ -136,7 +136,7 @@
id="Lannex"
name=_"Lannex"
canrecruit="1"
side="7"
side="7" # ACTIVATE_LICHES macro depends on this value
controller="ai"
team_name="evil"
user_team_name=_"Evil"
@ -448,24 +448,30 @@
value=yes
[/set_variable]
[allow_recruit]
side=2
type="Blood Bat,Ghost,Wraith,Shadow,Skeleton,Skeleton Archer,Ghoul,Necrophage,Revenant,Deathblade,Bone Shooter"
[/allow_recruit]
[allow_recruit]
side=6
type="Blood Bat,Ghost,Wraith,Shadow,Skeleton,Skeleton Archer,Ghoul,Necrophage,Revenant,Deathblade,Bone Shooter"
[/allow_recruit]
[allow_recruit]
side=7
type="Blood Bat,Ghost,Wraith,Shadow,Skeleton,Skeleton Archer,Ghoul,Necrophage,Revenant,Deathblade,Bone Shooter"
[/allow_recruit]
{ACTIVATE_LICHES}
[/then]
[/if]
[/event]
# This event is in case the player gets a unit through the sneak tunnel
# before opening the sealed doors.
[event]
name=moveto
[filter]
side=1
x=53
y=31
[/filter]
[message]
speaker=unit
message= _ "I think I hear noises, ahead of us..."
[/message]
{ACTIVATE_LICHES}
[/event]
[event]
name=moveto

View File

@ -311,3 +311,25 @@
[/message]
#enddef
#define ACTIVATE_LICHES
[message]
speaker="Angarthing"
message=_"I sense wrongness. Some greater evil awakens before us."
[/message]
[allow_recruit]
side=2
type="Blood Bat,Ghost,Wraith,Shadow,Skeleton,Skeleton Archer,Ghoul,Necrophage,Revenant,Deathblade,Bone Shooter"
[/allow_recruit]
[allow_recruit]
side=6
type="Blood Bat,Ghost,Wraith,Shadow,Skeleton,Skeleton Archer,Ghoul,Necrophage,Revenant,Deathblade,Bone Shooter"
[/allow_recruit]
[allow_recruit]
side=7
type="Blood Bat,Ghost,Wraith,Shadow,Skeleton,Skeleton Archer,Ghoul,Necrophage,Revenant,Deathblade,Bone Shooter"
[/allow_recruit]
#enddef