Made SCATTER_UNITS handle running out of valid spots better.
This commit is contained in:
parent
f7ce683f29
commit
daec179c59
1 changed files with 11 additions and 0 deletions
|
@ -705,6 +705,17 @@
|
|||
variable=possible_unit_locations
|
||||
[/store_locations]
|
||||
|
||||
[if]
|
||||
[variable]
|
||||
name=possible_unit_locations.length
|
||||
less_than=1
|
||||
[/variable]
|
||||
|
||||
[then]
|
||||
{VARIABLE units_to_place 0}
|
||||
[/then]
|
||||
[/if]
|
||||
|
||||
{VARIABLE_OP unit_type_table_i add 1}
|
||||
|
||||
[if]
|
||||
|
|
Loading…
Add table
Reference in a new issue