Skip to content

Commit

Permalink
make VOXAM useful
Browse files Browse the repository at this point in the history
  • Loading branch information
nbrochu committed Feb 18, 2024
1 parent 9f66b61 commit 81e0f07
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion worlds/zork_grand_inquisitor/data/item_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ class ZorkGrandInquisitorItemData(NamedTuple):
ZorkGrandInquisitorItems.SPELL_VOXAM: ZorkGrandInquisitorItemData(
statemap_keys=(191,),
archipelago_id=ITEM_OFFSET + 200 + 7,
classification=ItemClassification.filler,
classification=ItemClassification.useful,
tags=(ZorkGrandInquisitorTags.SPELL,),
),
# Subway Destinations
Expand Down
2 changes: 2 additions & 0 deletions worlds/zork_grand_inquisitor/docs/en_Zork Grand Inquisitor.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ randomization and makes the game more interesting to play.
You can travel back to the surface without dying by looking inside the bucket. This will work as long as the rope is
still attached to the well.

Attempting to cast VOXAM will teleport you back to the Crossroads. Fast Travel!

## What item types are distributed in the multiworld?

- Inventory items
Expand Down
4 changes: 4 additions & 0 deletions worlds/zork_grand_inquisitor/game_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -838,6 +838,10 @@ def _apply_conditional_teleports(self) -> None:
if self._player_is_at("ej10"):
self.game_state_manager.set_game_location("uc10", 1200)

if self._read_game_state_value_for(9) == 224:
self._write_game_state_value_for(9, 0)
self.game_state_manager.set_game_location("uc10", 1200)

def _check_for_victory(self) -> None:
if self.option_goal == ZorkGrandInquisitorGoals.THREE_ARTIFACTS:
coconut_is_placed = self._read_game_state_value_for(2200) == 1
Expand Down

0 comments on commit 81e0f07

Please sign in to comment.