mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-07-14 17:12:59 -07:00
MM Bunny Hood enhancement (#181)
Allow bunny hood in boss rooms Use math instead of array Allow other masks with enhancement because why not
This commit is contained in:
parent
a11038f515
commit
fe6dbd2a5b
5 changed files with 38 additions and 7 deletions
|
@ -919,7 +919,11 @@ void func_80083108(GlobalContext* globalCtx) {
|
|||
|
||||
if (interfaceCtx->restrictions.tradeItems != 0) {
|
||||
for (i = 1; i < 4; i++) {
|
||||
if ((gSaveContext.equips.buttonItems[i] >= ITEM_WEIRD_EGG) &&
|
||||
if ((CVar_GetS32("gMMBunnyHood", 0) != 0)
|
||||
&& (gSaveContext.equips.buttonItems[i] >= ITEM_MASK_KEATON)
|
||||
&& (gSaveContext.equips.buttonItems[i] <= ITEM_MASK_TRUTH)) {
|
||||
gSaveContext.buttonStatus[i] = BTN_ENABLED;
|
||||
} else if ((gSaveContext.equips.buttonItems[i] >= ITEM_WEIRD_EGG) &&
|
||||
(gSaveContext.equips.buttonItems[i] <= ITEM_CLAIM_CHECK)) {
|
||||
if (gSaveContext.buttonStatus[i] == BTN_ENABLED) {
|
||||
sp28 = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue