Skip to content

Capacity Upgrade shop's items are cleared when Item Functionality instead of Item Pool is Hard+ #794

@tcprescott

Description

@tcprescott

Options page says the capacity upgrades should be removed with a Hard+ item pool, but instead is being removed with the Item Functionality setting: https://alttpr.com/en/options#item_pool

switch ($this->config('item.functionality')) {
case 'expert':
$this->config['rom.HardMode'] = 2;
break;
case 'hard':
$this->config['rom.HardMode'] = 1;
}

switch ($world->config('rom.HardMode', 0)) {
case 1:
case 2:
case 3:
$world->getShop("Capacity Upgrade")->clearInventory();
$world->getShop("Dark World Potion Shop")->addInventory(1, Item::get('Nothing', $world), 0);
$world->getShop("Dark World Forest Shop")->addInventory(0, Item::get('Nothing', $world), 0);
$world->getShop("Dark World Lumberjack Hut Shop")->addInventory(1, Item::get('Nothing', $world), 0);
$world->getShop("Dark World Outcasts Shop")->addInventory(1, Item::get('Nothing', $world), 0);
$world->getShop("Dark World Lake Hylia Shop")->addInventory(1, Item::get('Nothing', $world), 0);
break;
}

We just need to instead have this driven off the item_pool setting instead of using rom.HardMode, or update documentation on the site.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions