Skip to content

Commit

Permalink
Improve hint text for easter eggs
Browse files Browse the repository at this point in the history
  • Loading branch information
NewSoupVi committed Dec 13, 2024
1 parent ba38dcf commit 5e476d9
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions worlds/witness/hints.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,10 @@ def word_direct_hint(world: "WitnessWorld", hint: WitnessLocationHint) -> Witnes
area = chosen_group

# local locations should only ever return a location group, as Witness defines groups for every location.
hint_text = f"{item_name} can be found in the {area} area."
if area == "Easter Eggs":
hint_text = f"{item_name} can be found by collecting Easter Eggs."
else:
hint_text = f"{item_name} can be found in the {area} area."
else:
player_name = world.multiworld.get_player_name(hint.location.player)

Expand Down Expand Up @@ -505,10 +508,13 @@ def word_area_hint(world: "WitnessWorld", hinted_area: str, area_items: List[Ite

area_progression_word = "Both" if total_progression == 2 else "All"

hint_string = f"In the {hinted_area} area, you will find "
if hinted_area == "Easter Eggs":
hint_string = "Through collecting Easter Eggs, you will find "
else:
hint_string = f"In the {hinted_area} area, you will find "

hunt_panels = None
if world.options.victory_condition == "panel_hunt":
if world.options.victory_condition == "panel_hunt" and hinted_area != "Easter Eggs":
hunt_panels = sum(
static_witness_logic.ENTITIES_BY_HEX[hunt_entity]["area"]["name"] == hinted_area
for hunt_entity in world.player_logic.HUNT_ENTITIES
Expand Down

0 comments on commit 5e476d9

Please sign in to comment.