Skip to content

Commit

Permalink
Replace with one-liner
Browse files Browse the repository at this point in the history
  • Loading branch information
vaguerant authored Jun 28, 2022
1 parent 1573f8d commit 7fa2a47
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions soh/src/overlays/misc/ovl_kaleido_scope/z_kaleido_item.c
Original file line number Diff line number Diff line change
Expand Up @@ -338,13 +338,8 @@ void KaleidoScope_DrawItemSelect(GlobalContext* globalCtx) {
pauseCtx->cursorItem[PAUSE_ITEM] = cursorItem;
pauseCtx->cursorSlot[PAUSE_ITEM] = cursorSlot;

if (CVar_GetS32("gMMBunnyHood", 0) && INV_CONTENT(ITEM_TRADE_CHILD) == ITEM_MASK_BUNNY) {
gSlotAgeReqs[SLOT_TRADE_CHILD] = 9;
gItemAgeReqs[ITEM_MASK_BUNNY] = 9;
} else {
gSlotAgeReqs[SLOT_TRADE_CHILD] = 1;
gItemAgeReqs[ITEM_MASK_BUNNY] = 1;
}
gSlotAgeReqs[SLOT_TRADE_CHILD] = gItemAgeReqs[ITEM_MASK_BUNNY] =
(CVar_GetS32("gMMBunnyHood", 0) && INV_CONTENT(ITEM_TRADE_CHILD) == ITEM_MASK_BUNNY) ? 9 : 1;

if (!((gSlotAgeReqs[cursorSlot] == 9) || (gSlotAgeReqs[cursorSlot] == ((void)0, gSaveContext.linkAge)))) {
pauseCtx->nameColorSet = 1;
Expand Down

0 comments on commit 7fa2a47

Please sign in to comment.