def test_hide_hints(): # Setup expected = [ {"asset_id": 0xD97685FE, "strings": make_useless_stk_hint(1)}, {"asset_id": 0x32413EFD, "strings": make_useless_stk_hint(2)}, {"asset_id": 0xDD8355C3, "strings": make_useless_stk_hint(3)}, {"asset_id": 0x3F5F4EBA, "strings": make_useless_stk_hint(4)}, {"asset_id": 0xD09D2584, "strings": make_useless_stk_hint(5)}, {"asset_id": 0x3BAA9E87, "strings": make_useless_stk_hint(6)}, {"asset_id": 0xD468F5B9, "strings": make_useless_stk_hint(7)}, {"asset_id": 0x2563AE34, "strings": make_useless_stk_hint(8)}, {"asset_id": 0xCAA1C50A, "strings": make_useless_stk_hint(9)}, ] # Run result = sky_temple_key_hint.hide_hints() # Assert assert result == expected
def _create_string_patches(hint_config: HintConfiguration, game: GameDescription, all_patches: Dict[int, GamePatches], players_config: PlayersConfiguration, rng: Random, ) -> list: """ :param hint_config: :param game: :param patches: :return: """ patches = all_patches[players_config.player_index] string_patches = [] # Location Hints string_patches.extend( item_hints.create_hints(patches, game.world_list, rng) ) # Sky Temple Keys stk_mode = hint_config.sky_temple_keys if stk_mode == SkyTempleKeyHintMode.DISABLED: string_patches.extend(sky_temple_key_hint.hide_hints()) else: string_patches.extend(sky_temple_key_hint.create_hints(all_patches, players_config, game.world_list, stk_mode == SkyTempleKeyHintMode.HIDE_AREA)) # Elevator Scans string_patches.extend(_create_elevator_scan_port_patches(game.world_list, patches.elevator_connection)) string_patches.extend(_logbook_title_string_patches()) return string_patches
def _create_string_patches( hint_config: HintConfiguration, game: GameDescription, patches: GamePatches, rng: Random, ) -> list: """ :param hint_config: :param game: :param patches: :return: """ string_patches = [] # Location Hints string_patches.extend( item_hints.create_hints(patches, game.world_list, rng)) # Sky Temple Keys stk_mode = hint_config.sky_temple_keys if stk_mode == SkyTempleKeyHintMode.DISABLED: string_patches.extend(sky_temple_key_hint.hide_hints()) else: string_patches.extend( sky_temple_key_hint.create_hints( patches, game.world_list, stk_mode == SkyTempleKeyHintMode.HIDE_AREA)) return string_patches