Skip to content

Commit

Permalink
Merge pull request #977 from cassidoxa/aga_door_glitched
Browse files Browse the repository at this point in the history
Unlock Aga Tower door during standard escape in glitched modes
  • Loading branch information
tcprescott authored Dec 24, 2021
2 parents 8a4362b + aa9ad84 commit 8da4f3c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion app/World.php
Original file line number Diff line number Diff line change
Expand Up @@ -1090,7 +1090,6 @@ public function writeToRom(Rom $rom, bool $save = false): Rom
$rom->setGenericKeys($this->config('rom.genericKeys', false));
$rom->setupCustomShops($this->getShops());
$rom->setRupeeArrow($this->config('rom.rupeeBow', false));
$rom->setLockAgahnimDoorInEscape(true);
$rom->setWishingWellChests(true);
$rom->setWishingWellUpgrade(false);
$rom->setHyliaFairyShop(true);
Expand Down Expand Up @@ -1175,6 +1174,19 @@ public function writeToRom(Rom $rom, bool $save = false): Rom

$rom->setGameState($this->config('mode.state'));
$rom->setSwordlessMode($this->config('mode.weapons') === 'swordless');
if ($this->config('mode.state') !== 'inverted') {
switch ($this->config('rom.logicMode', $this->config['logic'])) {
case 'MajorGlitches':
case 'NoLogic':
case 'OverworldGlitches':
$rom->setLockAgahnimDoorInEscape(false);
break;
case 'NoGlitches':
default:
$rom->setLockAgahnimDoorInEscape(true);
break;
}
}

if (!$this->getLocation("Link's Uncle")->getItem() instanceof Item\Sword) {
$rom->removeUnclesSword();
Expand Down

0 comments on commit 8da4f3c

Please sign in to comment.