diff --git a/inventory.asm b/inventory.asm index 68f419a..4a64eb4 100644 --- a/inventory.asm +++ b/inventory.asm @@ -181,6 +181,7 @@ ShopCheck: ; TODO: If we write all shops, we can use the ShopPurchase flag instead of this LDA.b IndoorsFlag : BEQ .count LDA.w ItemReceiptMethod : CMP.b #$01 : BEQ .count + LDA.l ShopEnableCount : BNE .count LDA.w InventoryTable_properties,Y : BIT.b #$02 : BNE .count REP #$20 LDA.b RoomIndex diff --git a/itemdatatables.asm b/itemdatatables.asm index ed39f47..d7fab6e 100644 --- a/itemdatatables.asm +++ b/itemdatatables.asm @@ -347,7 +347,7 @@ endmacro %ReceiptProps($D1, -4, 0, $47, $F36A, $FF, skip, skip) ; D1 - Apples %ReceiptProps($D2, -4, 0, $47, $F36A, $FF, fairy, skip) ; D2 - Fairy %ReceiptProps($D3, -4, 0, $47, $F36A, $FF, chicken, skip) ; D3 - Chicken -%ReceiptProps($D4, -4, 4, $3B, $F373, $80, skip, skip) ; D4 - Big Magic +%ReceiptProps($D4, -4, 4, $3B, $F373, $80, refill_magic, skip) ; D4 - Big Magic %ReceiptProps($D5, -4, 0, $02, $F376, $05, skip, skip) ; D5 - 5 Arrows %ReceiptProps($D6, -4, 0, $49, $F36A, $FF, skip, skip) ; D6 - %ReceiptProps($D7, -4, 0, $49, $F36A, $FF, skip, skip) ; D7 - diff --git a/keydrop/standing_items.asm b/keydrop/standing_items.asm index 07b84ac..5813a85 100644 --- a/keydrop/standing_items.asm +++ b/keydrop/standing_items.asm @@ -502,10 +502,10 @@ db $36, $DB ; RED RUPEE ($36) db $42, $D8 ; HEART ($42) db $44, $E2 ; ARROW REFILL 10 ($44) db $45, $DF ; SMALL MAGIC DECANTER ($45) -db $B2, $E3 ; FAERIE ($B2) -db $B3, $0B ; CUCCO ($B3) -db $B4, $E0 ; LARGE MAGIC DECANTER ($B4) -db $B5, $E1 ; ARROW REFILL 5 (x??) +db $D2, $E3 ; FAERIE ($D2) +db $D3, $0B ; CUCCO ($D3) +db $D4, $E0 ; LARGE MAGIC DECANTER ($D4) +db $D5, $E1 ; ARROW REFILL 5 (x$D5) IncrementCountForMinor: diff --git a/newitems.asm b/newitems.asm index ea200f9..a6e38f0 100644 --- a/newitems.asm +++ b/newitems.asm @@ -677,6 +677,9 @@ ItemBehavior: .done RTS + .refill_magic + SEP #$30 : LDA.b #$80 : STA.l MagicFiller : RTS + .bee_trap SEP #$30 LDA.b #$79 : JSL Sprite_SpawnDynamically : BMI + ; DashBeeHive_SpawnBee diff --git a/save.asm b/save.asm index c68c084..bec2edb 100644 --- a/save.asm +++ b/save.asm @@ -173,8 +173,8 @@ RTL CopyExtendedWRAMSaveFileToSRAM: PHB LDA.w #$0FFF - LDX.w #ExtendedSaveDataSRAM - LDY.w #ExtendedSaveDataWRAM + LDX.w #ExtendedSaveDataWRAM + LDY.w #ExtendedSaveDataSRAM MVN CartridgeSRAM>>16, ExtendedSaveDataWRAM>>16 PLB TDC diff --git a/tables.asm b/tables.asm index 513804c..6e0903e 100644 --- a/tables.asm +++ b/tables.asm @@ -2589,7 +2589,7 @@ db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF ;-------------------------------------------------------------------------------- ; 0x30EC00 - 0x30EE2B Multiworld Item's PlayerID ;-------------------------------------------------------------------------------- -org $30EC00 +org $B0EC00 ChestData_Player: dl $000000, $000000, $000000, $000000, $000000, $000000, $000000, $000000 dl $000000, $000000, $000000, $000000, $000000, $000000, $000000, $000000 @@ -2717,16 +2717,16 @@ db #$00 ChestGameItem_Player: ; EE2B db #$00 ;-------------------------------------------------------------------------------- -org $30EE30 ; PC 0x18636C +org $B0EE30 ; PC 0x18636C RemoteItems: db #$00 ; $00 = off; $01 = on (default: off) -org $30EE31 ; PC 0x18637D +org $B0EE31 ; PC 0x18637D Enable_TerrorPin_AI_Fix: db #$00 ;Shop slot count as check -org $30EE40 ; +org $B0EE40 ; EnableShopItemCount: db #$00, #$00, #$00, #$00, #$00, #$00, #$00, #$00, #$00, #$00, #$00, #$00, #$00, #$00, #$00, #$00 db #$00, #$00, #$00, #$00, #$00, #$00, #$00, #$00, #$00, #$00, #$00, #$00, #$00, #$00, #$00, #$00