Used include_borders=no in SCATTER_UNITS
This is the 'more straightforward' method of doing this mentioned in 982d868b94
This commit is contained in:
parent
ac42e5e228
commit
72e67eee93
1 changed files with 4 additions and 18 deletions
|
@ -481,25 +481,11 @@
|
|||
#! [/modifications]
|
||||
#! )}
|
||||
|
||||
[store_map_dimensions]
|
||||
variable=scatter_units_map_dimensions
|
||||
[/store_map_dimensions]
|
||||
|
||||
[store_locations]
|
||||
[and]
|
||||
{FILTER}
|
||||
[/and]
|
||||
|
||||
# This (and the above wrapper [and]) is used to filter out border hexes;
|
||||
# if a more straightforward way to exclude border hexes is implemented,
|
||||
# then this should be replaced with that
|
||||
[not]
|
||||
x="0, $($scatter_units_map_dimensions.width + 1)"
|
||||
[or]
|
||||
y="0, $($scatter_units_map_dimensions.height + 1)"
|
||||
[/or]
|
||||
[/not]
|
||||
{FILTER}
|
||||
|
||||
# Exclude border hexes
|
||||
include_borders=no
|
||||
variable=possible_unit_locations
|
||||
[/store_locations]
|
||||
|
||||
|
@ -572,7 +558,7 @@
|
|||
[/do]
|
||||
[/while]
|
||||
|
||||
{CLEAR_VARIABLE unit_type_table,unit_type_table_i,scatter_units_map_dimensions,possible_unit_locations,random_subscript,units_to_place}
|
||||
{CLEAR_VARIABLE unit_type_table,unit_type_table_i,possible_unit_locations,random_subscript,units_to_place}
|
||||
#enddef
|
||||
|
||||
#define FORCE_CHANCE_TO_HIT FILTER SECOND_FILTER CTH_NUMBER EXTRA_CONDITIONS_WML
|
||||
|
|
Loading…
Add table
Reference in a new issue