mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-02 16:12:21 +00:00
Changed custom unit variable unit.spawn_id to unit.variables.spawn_id.
This commit is contained in:
parent
94c32d5ef9
commit
a070a7e2b2
@ -235,7 +235,7 @@ Note: You need to use map settings for the scenario to work right."
|
||||
[/then]
|
||||
[/if]
|
||||
{VARIABLE_OP max_units add -1}
|
||||
{VARIABLE new_unit.spawn_id {ID}}
|
||||
{VARIABLE new_unit.variables.spawn_id {ID}}
|
||||
{VARIABLE new_unit.role new_spawn{TIER}}
|
||||
[unstore_unit]
|
||||
variable=new_unit
|
||||
@ -258,7 +258,7 @@ Note: You need to use map settings for the scenario to work right."
|
||||
[/filter]
|
||||
[/store_unit]
|
||||
{FOREACH new_spawn unit_id}
|
||||
{VARIABLE spawn_id $new_spawn[$unit_id].spawn_id}
|
||||
{VARIABLE spawn_id $new_spawn[$unit_id].variables.spawn_id}
|
||||
{VARIABLE previous_cost $new_spawn.cost}
|
||||
{VARIABLE upgrade_var main_spawns[$group_id].spawn_type[$spawn_id].up{TIER_NUMBER}}
|
||||
{VARIABLE_OP advanceto to_variable $upgrade_var}
|
||||
|
Loading…
x
Reference in New Issue
Block a user