diff --git a/OverworldShuffle.py b/OverworldShuffle.py index 27abd90a..d0abce2d 100644 --- a/OverworldShuffle.py +++ b/OverworldShuffle.py @@ -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): diff --git a/docs/Customizer.md b/docs/Customizer.md index d30a7d30..075e8602 100644 --- a/docs/Customizer.md +++ b/docs/Customizer.md @@ -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. diff --git a/docs/customizer_example.yaml b/docs/customizer_example.yaml index a9cebd90..8849f2e7 100644 --- a/docs/customizer_example.yaml +++ b/docs/customizer_example.yaml @@ -105,6 +105,10 @@ ow-tileflips: force_no_flip: - 0x2c - 0x18 + force_together: + someDescription: + - 0x16 + - 0x2b undefined_chance: 50 ow-flutespots: 1: