Likely fix for the Dark Forecast OoS.

This commit is contained in:
Lari Nieminen 2010-03-14 21:25:42 +00:00
parent 52b42d642d
commit 9ea7fa89e9

View file

@ -213,15 +213,8 @@ Note: You need to use map settings for the scenario to work right."
role=new_unit{TIER_NUMBER}
random_traits=no
name="none"
to_variable=new_unit
[/unit]
[store_unit]
kill=no
variable=new_unit
[filter]
side={SIDE}
role=new_unit{TIER_NUMBER}
[/filter]
[/store_unit]
{VARIABLE_OP gold add -$new_unit.cost}
### DEBUG
{VARIABLE_OP total_cost add $new_unit.cost}
@ -305,16 +298,8 @@ Note: You need to use map settings for the scenario to work right."
name="none"
x=20
y=22
to_variable=advancement
[/unit]
[store_unit]
variable=advancement
kill=yes
[filter]
x=20
y=22
side={SIDE}
[/filter]
[/store_unit]
{VARIABLE upgrade_cost $advancement.cost}
{VARIABLE_OP upgrade_cost add -$previous_cost}
# 25% surcharge
@ -340,11 +325,6 @@ Note: You need to use map settings for the scenario to work right."
[/then]
[/if]
[unstore_unit]
variable=new_spawn[$unit_id]
find_vacant=yes
[/unstore_unit]
[if]
[variable]
name=use_somehack
@ -352,10 +332,25 @@ Note: You need to use map settings for the scenario to work right."
[/variable]
[then]
{TRANSFORM_UNIT x,y=$new_spawn[$unit_id].x,$new_spawn[$unit_id].y $somehack_type}
[unit]
type=$somehack_type
side={SIDE}
x=$new_spawn[$unit_id].x
y=$new_spawn[$unit_id].y
role=new_unit{TIER_NUMBER}
random_traits=no
name="none"
[/unit]
{VARIABLE use_somehack no}
[/then]
[else]
[unstore_unit]
variable=new_spawn[$unit_id]
find_vacant=yes
[/unstore_unit]
[/else]
[/if]
{NEXT unit_id}
{CLEAR_VARIABLE new_spawn}