Adding Customizer support for grouping tiles together in Mixed OWR

This commit is contained in:
codemann8
2023-09-07 11:30:32 -05:00
parent 535945477b
commit c0985dacdc
3 changed files with 17 additions and 0 deletions

View File

@@ -916,6 +916,8 @@ def determine_forced_flips(world, tile_ow_groups, player):
forced_flips = custom_flips['force_flip'] forced_flips = custom_flips['force_flip']
if 'force_no_flip' in custom_flips: if 'force_no_flip' in custom_flips:
forced_nonflips = custom_flips['force_no_flip'] 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: for group in tile_ow_groups:
if any(owid in group[0]+group[1] for owid in forced_nonflips): if any(owid in group[0]+group[1] for owid in forced_nonflips):

View File

@@ -149,6 +149,17 @@ force_no_flip:
- 0x13 - 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
`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. `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.

View File

@@ -105,6 +105,10 @@ ow-tileflips:
force_no_flip: force_no_flip:
- 0x2c - 0x2c
- 0x18 - 0x18
force_together:
someDescription:
- 0x16
- 0x2b
undefined_chance: 50 undefined_chance: 50
ow-flutespots: ow-flutespots:
1: 1: