Fix swordless boss placement to place Kholdstare in Ice Palace.
MODIFY
app/Randomizer.php
app/Randomizer.php
@@ -370,7 +370,7 @@ class Randomizer implements RandomizerContract
];
if ($world->config('mode.weapons') == 'swordless') {
- array_splice($boss_locations, 8, 1); // remove Ice Palace
+ array_splice($boss_locations, 9, 1); // remove Ice Palace
$world->getRegion('Ice Palace')->setBoss(Boss::get("Kholdstare", $world));
}

MODIFY
tests/RandomizerTest.php
tests/RandomizerTest.php
@@ -294,6 +294,8 @@ class RandomizerTest extends TestCase
$this->world->getRegion('Ganons Tower')->getBoss('middle')->getEName(),
$this->world->getRegion('Ganons Tower')->getBoss('top')->getEName()]);
+ $this->assertEquals('Kholdstare', $this->world->getRegion('Ice Palace')->getBoss('')->getEName());
+
$this->assertEquals([2, 2, 2, 1, 1, 1, 1, 1, 1, 1],
[
$bosses['Armos'],
@@ -331,6 +333,8 @@ class RandomizerTest extends TestCase
$this->world->getRegion('Ganons Tower')->getBoss('middle')->getEName(),
$this->world->getRegion('Ganons Tower')->getBoss('top')->getEName()]);
+ $this->assertEquals('Kholdstare', $this->world->getRegion('Ice Palace')->getBoss('')->getEName());
+
$this->assertGreaterThanOrEqual(1, $bosses['Armos']);
$this->assertGreaterThanOrEqual(1, $bosses['Lanmola']);
$this->assertGreaterThanOrEqual(1, $bosses['Moldorm']);
@@ -338,7 +342,7 @@ class RandomizerTest extends TestCase
$this->assertGreaterThanOrEqual(1, $bosses['Arrghus']);
$this->assertGreaterThanOrEqual(1, $bosses['Mothula']);
$this->assertGreaterThanOrEqual(1, $bosses['Blind']);
- $this->assertGreaterThanOrEqual(1, $bosses['Kholdstare']);
+ $this->assertEquals(1, $bosses['Kholdstare']);
$this->assertGreaterThanOrEqual(1, $bosses['Vitreous']);
$this->assertGreaterThanOrEqual(1, $bosses['Trinexx']);
}

Fix swordless boss placement to place Kholdstare in Ice Palace.