Fixes BGS on skull tokens

This commit is contained in:
aMannus 2022-08-25 08:49:15 +02:00
parent d2fe83edf4
commit cc6e4238cf

View File

@ -1644,6 +1644,7 @@ u8 Item_Give(GlobalContext* globalCtx, u8 item) {
if (item == ITEM_SWORD_BGS) { if (item == ITEM_SWORD_BGS) {
gSaveContext.swordHealth = 8; gSaveContext.swordHealth = 8;
gSaveContext.bgsFlag = 1;
if (ALL_EQUIP_VALUE(EQUIP_SWORD) == 0xF if (ALL_EQUIP_VALUE(EQUIP_SWORD) == 0xF
||(gSaveContext.n64ddFlag && ALL_EQUIP_VALUE(EQUIP_SWORD) == 0xE)) { // In rando, when buying Giant's Knife, also check ||(gSaveContext.n64ddFlag && ALL_EQUIP_VALUE(EQUIP_SWORD) == 0xE)) { // In rando, when buying Giant's Knife, also check