eliminate delay_victory variable
This commit is contained in:
parent
8efa5039c5
commit
7e548fbdee
1 changed files with 11 additions and 30 deletions
|
@ -370,16 +370,8 @@
|
|||
#TODO get rid of this variable
|
||||
[set_variable]
|
||||
name=assassin_turn
|
||||
rand=13..23
|
||||
[/set_variable]
|
||||
|
||||
#if play kills both enemy leaders while assassin is alive, then
|
||||
#delay victory
|
||||
|
||||
#TODO get rid of this variable
|
||||
[set_variable]
|
||||
name=delay_victory
|
||||
value=0
|
||||
# rand=13..23
|
||||
[/set_variable]
|
||||
|
||||
#create starting elves
|
||||
|
@ -956,11 +948,6 @@
|
|||
#set new scenario objectives
|
||||
|
||||
{CLOAK_KILL_OBJECTIVES}
|
||||
|
||||
[set_variable]
|
||||
name=delay_victory
|
||||
value=1
|
||||
[/set_variable]
|
||||
[/then]
|
||||
|
||||
[else]
|
||||
|
@ -1070,11 +1057,6 @@
|
|||
[/message]
|
||||
|
||||
{CLOAK_KILL_OBJECTIVES}
|
||||
|
||||
[set_variable]
|
||||
name=delay_victory
|
||||
value=2
|
||||
[/set_variable]
|
||||
[/then]
|
||||
|
||||
[else]
|
||||
|
@ -2775,10 +2757,11 @@
|
|||
# if cloaked figure was delaying victory event from firing
|
||||
|
||||
[if]
|
||||
[variable]
|
||||
name=delay_victory
|
||||
numerical_equals=1
|
||||
[/variable]
|
||||
[have_unit]
|
||||
race=dwarf
|
||||
canrecruit=yes
|
||||
count=0
|
||||
[/have_unit]
|
||||
|
||||
[then]
|
||||
[message]
|
||||
|
@ -2796,10 +2779,11 @@
|
|||
[/if]
|
||||
|
||||
[if]
|
||||
[variable]
|
||||
name=delay_victory
|
||||
numerical_equals=2
|
||||
[/variable]
|
||||
[have_unit]
|
||||
race=troll
|
||||
canrecruit=yes
|
||||
count=0
|
||||
[/have_unit]
|
||||
|
||||
[then]
|
||||
[message]
|
||||
|
@ -2823,11 +2807,8 @@
|
|||
|
||||
{CLEAR_VARIABLE i}
|
||||
{CLEAR_VARIABLE battle_turn_counter}
|
||||
|
||||
{CLEAR_VARIABLE assassin_turn}
|
||||
|
||||
{CLEAR_VARIABLE delay_victory}
|
||||
|
||||
{CLEAR_VARIABLE Fundin_approach_message}
|
||||
{CLEAR_VARIABLE Nori_approach_message}
|
||||
{CLEAR_VARIABLE Thungar_approach_message}
|
||||
|
|
Loading…
Add table
Reference in a new issue