Adding Customizer support for grouping tiles together in Mixed OWR
This commit is contained in:
@@ -916,6 +916,8 @@ def determine_forced_flips(world, tile_ow_groups, player):
|
||||
forced_flips = custom_flips['force_flip']
|
||||
if 'force_no_flip' in custom_flips:
|
||||
forced_nonflips = custom_flips['force_no_flip']
|
||||
if 'force_together' in custom_flips:
|
||||
merged_owids = list(custom_flips['force_together'].values())
|
||||
|
||||
for group in tile_ow_groups:
|
||||
if any(owid in group[0]+group[1] for owid in forced_nonflips):
|
||||
|
||||
@@ -149,6 +149,17 @@ force_no_flip:
|
||||
- 0x13
|
||||
```
|
||||
|
||||
#### force_together
|
||||
|
||||
`force_together` should be used for defining tiles you want to force to flip as a group. Each group must have some unique name with all the OW Screen IDs listed that are desired to be grouped together. The name of a group can be anything as long as it is valid yaml syntax.
|
||||
|
||||
Here is an example which forces Links House and Sanctuary screens to flip together:
|
||||
```
|
||||
someGroup:
|
||||
- 0x2c
|
||||
- 0x13
|
||||
```
|
||||
|
||||
#### undefined_chance
|
||||
|
||||
`undefined_chance` should be used to determine how to handle all the remaining tiles that aren't explicitly defined in the earlier step. This represents the percent chance a tile will flip. This value can be set from 0 to 100 (default is 50). A value of 0 means there is a 0% chance it will be flipped.
|
||||
|
||||
@@ -105,6 +105,10 @@ ow-tileflips:
|
||||
force_no_flip:
|
||||
- 0x2c
|
||||
- 0x18
|
||||
force_together:
|
||||
someDescription:
|
||||
- 0x16
|
||||
- 0x2b
|
||||
undefined_chance: 50
|
||||
ow-flutespots:
|
||||
1:
|
||||
|
||||
Reference in New Issue
Block a user