@gaialabs/iog-baserom 0.2.6 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/baserom/auto-use-items/CellKeysAutoUse.patch.asm +30 -0
- package/baserom/auto-use-items/CrystalBallAutoUse.patch.asm +131 -0
- package/baserom/auto-use-items/DiamondBlockAutoUse.patch.asm +50 -0
- package/baserom/auto-use-items/ElevatorKeyAutoUse.patch.asm +26 -0
- package/baserom/auto-use-items/GorgonFlowerAutoUse.patch.asm +153 -0
- package/baserom/auto-use-items/HieroglyphPuzzle.patch.asm +1187 -0
- package/baserom/auto-use-items/HopeStatueAutoUse.patch.asm +99 -0
- package/baserom/auto-use-items/IncanStatueAutoUse.patch.asm +75 -0
- package/baserom/auto-use-items/ItemUseStub.patch.asm +24 -0
- package/baserom/auto-use-items/MagicPowerAutoUse.patch.asm +55 -0
- package/baserom/auto-use-items/MeatAutoUse.patch.asm +33 -0
- package/baserom/auto-use-items/MushroomDropAutoUse.patch.asm +100 -0
- package/baserom/auto-use-items/PalaceKeyAutoUse.patch.asm +52 -0
- package/baserom/auto-use-items/PrisonKeyAutoUse.patch.asm +84 -0
- package/baserom/auto-use-items/PurificationStoneAutoUse.patch.asm +49 -0
- package/baserom/auto-use-items/RamaStatueAutoUse.patch.asm +100 -0
- package/baserom/auto-use-items/TearpotAutoUse.patch.asm +41 -0
- package/baserom/{spritemaps → boot-logo}/spm_boot_logos.sprite.asm +10 -0
- package/baserom/collectible-system/RelicMenu.patch.asm +250 -0
- package/baserom/collectible-system/key_item_core.asm +445 -0
- package/baserom/{patches → equipped-icon}/EquippedIcon.patch.asm +41 -46
- package/baserom/equipped-icon/ItemSwapping.patch.asm +99 -0
- package/baserom/{palettes → equipped-icon}/pal_item_exprite2.pal +0 -0
- package/baserom/{spritemaps → equipped-icon}/spm_sc02_main_characters.sprite.asm +10 -0
- package/baserom/equipped-icon/spriteset_aura.asm +131 -0
- package/baserom/equipped-icon/spriteset_dark_friar.asm +277 -0
- package/baserom/equipped-icon/spriteset_darkgaia_projectile.asm +233 -0
- package/baserom/fixes-tweaks/BCDHex.patch.asm +60 -0
- package/baserom/fixes-tweaks/HudRedesign.patch.asm +108 -0
- package/baserom/fixes-tweaks/NeilsFatherFix.patch.asm +26 -0
- package/baserom/fixes-tweaks/PyramidPortalExit.patch.asm +41 -0
- package/baserom/fixes-tweaks/SceneTitles.patch.asm +84 -0
- package/baserom/fixes-tweaks/ThankfulFlower.patch.asm +28 -0
- package/baserom/fixes-tweaks/Utils.patch.asm +111 -0
- package/baserom/{spritemaps → fixes-tweaks}/spm_goldship_sprites.sprite.asm +11 -0
- package/baserom/fonts/EnhancedOverworldText.patch.asm +44 -0
- package/baserom/fonts/EnhancedPrologueText.patch.asm +252 -0
- package/baserom/{graphics → fonts}/gfx_fonts.bin +0 -0
- package/baserom/fonts/gfx_overworld_font.bin +0 -0
- package/baserom/inventory/EnhancedSlotActor.patch.asm +50 -0
- package/baserom/inventory/InventoryCounters.patch.asm +407 -0
- package/baserom/inventory/InventoryManagement.patch.asm +390 -0
- package/baserom/kara-run/gfx_castle_sprites.bin +0 -0
- package/baserom/new-game-plus/NGPEpilogueSwitch.patch.asm +52 -0
- package/baserom/{patches → new-game-plus}/NewGamePlus.patch.asm +42 -23
- package/baserom/oakton/map_fr30.map +0 -0
- package/baserom/oakton/map_fr30_effect.map +0 -0
- package/baserom/options-menu/EnhancedInvItemPicker.patch.asm +130 -0
- package/baserom/options-menu/MinimalHudOption.patch.asm +109 -0
- package/baserom/options-menu/OptionsMenu.patch.asm +218 -0
- package/baserom/options-menu/TextSpeedOption.patch.asm +108 -0
- package/baserom/options-menu/options_input_remap.asm +373 -0
- package/baserom/options-menu/options_menu_core.asm +1221 -0
- package/baserom/patches/APUWaitFixes.patch.asm +30 -17
- package/baserom/patches/AccentMap.patch.asm +16 -5
- package/baserom/patches/MusicTransitions.patch.asm +41 -24
- package/baserom/player-input/MergeInputFlags.patch.asm +146 -0
- package/baserom/player-input/PlayerInput.patch.asm +51 -0
- package/baserom/red-jewels/AnnSparkle.patch.asm +28 -0
- package/baserom/red-jewels/ChestFlaggedHiddenRedJewel.patch.asm +50 -0
- package/baserom/red-jewels/FishermanRedJewel.patch.asm +55 -0
- package/baserom/red-jewels/LanceSparkle.patch.asm +38 -0
- package/baserom/red-jewels/RedJewelSparkle.patch.asm +49 -0
- package/baserom/red-jewels/SnakePanicSparkle.patch.asm +45 -0
- package/baserom/red-jewels/SparkleAlways.patch.asm.example +19 -0
- package/baserom/red-jewels/StoneGirlSparkle.patch.asm +26 -0
- package/baserom/red-jewels/TrappedSlaveSparkle.patch.asm +63 -0
- package/baserom/red-jewels/generic_sparkle.asm +57 -0
- package/baserom/run-button/RunButtonCore.patch.asm +89 -0
- package/baserom/run-button/RunButtonOption.patch.asm +50 -0
- package/baserom/{patches/BitmapPatch.patch.asm → scene-load/BitmapLoad.patch.asm} +27 -12
- package/baserom/scene-load/Cop51Decompress.patch.asm +98 -0
- package/baserom/scene-load/ExpriteLoader.patch.asm +82 -0
- package/baserom/scene-load/MapNameLookup.patch.asm +27 -0
- package/baserom/scene-load/MenuBGLoad.patch.asm +70 -0
- package/baserom/scene-load/SFXTable.patch.asm +92 -0
- package/baserom/scene-load/SceneMetaLoad.patch.asm +68 -0
- package/baserom/scene-load/SpritemapLoad.patch.asm +61 -0
- package/baserom/scene-load/TilemapLoad.patch.asm +109 -0
- package/baserom/scene-load/TilesetLoad.patch.asm +41 -0
- package/baserom/set_overworld.set +0 -0
- package/baserom/seths-jewel/SethsJewelGoldShip.patch.asm +22 -0
- package/baserom/seths-jewel/SethsJewelIcon.patch.asm +22 -0
- package/baserom/seths-jewel/SethsJewelItem.patch.asm +62 -0
- package/baserom/seths-jewel/SethsJewelSprites.patch.asm +49 -0
- package/baserom/{patches → sky-delivery}/SouthCapeDeliveryman.patch.asm +12 -3
- package/baserom/sky-delivery/WatermiaDeliveryman.patch.asm +15 -0
- package/dist/index.cjs +10159 -964
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +9 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +10161 -967
- package/dist/index.mjs.map +1 -1
- package/package.json +10 -8
- package/baserom/asm/spriteset_aura.asm +0 -122
- package/baserom/asm/spriteset_dark_friar.asm +0 -268
- package/baserom/asm/spriteset_will_projectile.asm +0 -224
- package/baserom/patches/Cop51Patch.patch.asm +0 -81
- package/baserom/patches/DPShop.asm.old +0 -328
- package/baserom/patches/DeathWarp.asm.old +0 -174
- package/baserom/patches/ExpandedHealthBars.old +0 -203
- package/baserom/patches/ExpriteLoader.patch.asm +0 -66
- package/baserom/patches/GemShop.asm.old +0 -345
- package/baserom/patches/InventoryCounters.patch.asm +0 -292
- package/baserom/patches/InventoryManagement.patch.asm +0 -324
- package/baserom/patches/InventoryScript.asm.old +0 -319
- package/baserom/patches/ItemDictionary.asm.old +0 -86
- package/baserom/patches/ItemRewards.asm.old +0 -49
- package/baserom/patches/ItemSwapping.patch.asm +0 -80
- package/baserom/patches/MapNameLookup.patch.asm +0 -13
- package/baserom/patches/MenuBGPatch.patch.asm +0 -54
- package/baserom/patches/NGPEpilogueSwitch.patch.asm +0 -44
- package/baserom/patches/PixelConverter.patch.asm.old +0 -60
- package/baserom/patches/QuickScripts.asm.old +0 -210
- package/baserom/patches/RunButton.patch.asm +0 -79
- package/baserom/patches/SFXTable.patch.asm +0 -73
- package/baserom/patches/SceneLoadPatch.patch.asm +0 -52
- package/baserom/patches/SpritemapPatch.patch.asm +0 -45
- package/baserom/patches/Teleporter.patch.asm.old +0 -203
- package/baserom/patches/TilemapPatch.patch.asm +0 -94
- package/baserom/patches/TilesetPatch.patch.asm +0 -27
- package/baserom/patches/Utils.patch.asm +0 -414
- package/baserom/patches/WatermiaDeliveryman.patch.asm +0 -2
- /package/baserom/{graphics → boot-logo}/gfx_boot_exprite.raw.bin +0 -0
- /package/baserom/{graphics → boot-logo}/gfx_boot_logos.bin +0 -0
- /package/baserom/{palettes → boot-logo}/pal_boot_logos.pal +0 -0
- /package/baserom/{palettes → equipped-icon}/fx_palette_198000.pal +0 -0
- /package/baserom/{graphics → equipped-icon}/gfx_item_exprite.raw.bin +0 -0
- /package/baserom/{graphics → equipped-icon}/misc_fx_1CD580.bin +0 -0
- /package/baserom/{palettes → equipped-icon}/pal_item_exprite.pal +0 -0
- /package/baserom/{palettes → equipped-icon}/pal_sc02_main_characters.pal +0 -0
- /package/baserom/{graphics → fonts}/gfx_credits_font.bin +0 -0
- /package/baserom/{graphics → inventory}/gfx_inventory_sprites.bin +0 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
; ==============================================================================
|
|
2
|
+
; Teapot auto-use (Euro scene $95, Neil's mother) - statue interact + use stub
|
|
3
|
+
; ==============================================================================
|
|
4
|
+
; What it does: Neil's mother interact (code_07E316) checks Teapot (#19) or
|
|
5
|
+
; key_item_flags+2 bit $40, then JML eu95_neils_mother_use_stub which shows
|
|
6
|
+
; try dialog and JSR vanilla code_039856 (pour tears, remove item, flag #A8).
|
|
7
|
+
; Vanilla behavior: code_07E316 only prints Neil's mother dialog and RTL;
|
|
8
|
+
; Teapot use from inventory requires scene $95 and tile box via UseItem_Teapot.
|
|
9
|
+
; Hooks (overrides): eu95_neils_mother.code_07E316! adds key-item gate + stub
|
|
10
|
+
; jump; item_use_system.code_039856+ adds eu95_neils_mother_use_stub entry.
|
|
11
|
+
; Adds: eu95_neils_mother_use, eu95_neils_mother_use_stub (JSR code_039856, RTL).
|
|
12
|
+
; Depends on: !key_item_flags $0B58; dialogstring_07E31B/039861/039890; flag #A8.
|
|
13
|
+
; State: Item #19 Teapot; key_item_flags+2 $0040; actor blocks until flag #A8
|
|
14
|
+
; (vanilla eu95_neils_mother parent actor).
|
|
15
|
+
; Hazards/notes: Stub runs item handler without ItemUseStub long-address load;
|
|
16
|
+
; COP interact on mother actor needs X=actor slot.
|
|
17
|
+
; ==============================================================================
|
|
18
|
+
|
|
19
|
+
!key_item_flags 0B58
|
|
20
|
+
|
|
21
|
+
----------------------------------------------
|
|
22
|
+
|
|
23
|
+
eu95_neils_mother.code_07E316! {
|
|
24
|
+
LDA $key_item_flags+2
|
|
25
|
+
BIT #$0040
|
|
26
|
+
BNE eu95_neils_mother_use
|
|
27
|
+
COP [BranchIfHasItem] ( #19, &eu95_neils_mother_use )
|
|
28
|
+
COP [PrintDialogString] ( &dialogstring_07E31B )
|
|
29
|
+
RTL
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
eu95_neils_mother_use {
|
|
33
|
+
JML $@eu95_neils_mother_use_stub
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
item_use_system.code_039856+ {
|
|
37
|
+
eu95_neils_mother_use_stub:
|
|
38
|
+
COP [PrintDialogString] ( &dialogstring_039861 )
|
|
39
|
+
JSR $&code_039856
|
|
40
|
+
RTL
|
|
41
|
+
}
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
; ==============================================================================
|
|
2
|
+
; Boot logo title sprites (spm_boot_logos)
|
|
3
|
+
; ==============================================================================
|
|
4
|
+
; What it does: Sprite map data for the title-screen boot logo animation: two sprite-set
|
|
5
|
+
; entries (59-frame tick $003B each) with large multi-part OAM groups for the logo art.
|
|
6
|
+
; Vanilla behavior: Replaces or extends original boot logo sprite layout in ROM layout slot
|
|
7
|
+
; spm_boot_logos (see rebuilt file-layout); pairs with gfx_boot_logos / pal_boot_logos assets.
|
|
8
|
+
; Adds: sprite_set_list_000000, sprite_set_000004 / 00000A, sprite_group_000010 / 000112.
|
|
9
|
+
; Hazards/notes: Pure sprite-map data (no code); tile words reference boot logo CHR in VRAM.
|
|
10
|
+
; ==============================================================================
|
|
1
11
|
|
|
2
12
|
---------------------------------------------
|
|
3
13
|
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
; ==============================================================================
|
|
2
|
+
; Inventory Relics tab - key-item grid and acquired-relic viewer
|
|
3
|
+
; ==============================================================================
|
|
4
|
+
; What it does: Replaces Discard tab UI with Relics: slot actors show key-item stacks via
|
|
5
|
+
; KeyItemCountAndInit / InventoryCountersGenerateSprite; fourth tab lists owned relics with
|
|
6
|
+
; name and description tables; ShowAllItemSlots routes key slots to isa_key_entry loop.
|
|
7
|
+
; Vanilla behavior: DiscardGridLoop discarded items; InventorySlotActor only AnimOneFrame;
|
|
8
|
+
; ShowAllItemSlots always walked SlotActorEvaluate chain; status tab strings said Discard.
|
|
9
|
+
; Hooks (overrides): inventory_menu InventorySlotActor (loc_02E8DE+), Show/HideAllItemSlots,
|
|
10
|
+
; ShowEquipCursor, DiscardGridLoop, InventoryMenuInit- / loc_02E3AB!; system_strings tab text.
|
|
11
|
+
; Adds: RelicMenuScanIcon (bank 02); isa_key_entry key-slot animation path in slot actor insert.
|
|
12
|
+
; Depends on: key_item_core (KeyItemCountAndInit, KeyItemGetNext, key_item_flags $0B58);
|
|
13
|
+
; InventoryCountersGenerateSprite; item_name_line_table / item_description_table TBL tags.
|
|
14
|
+
; State: Scratch $7F0010-$7F001A,X slot actor chain; $18 tab index; $22 relic list cursor.
|
|
15
|
+
; Hazards/notes: Patch truncates HideAllItemSlots body (;...); verify against vanilla if extending.
|
|
16
|
+
; ==============================================================================
|
|
17
|
+
?BANK 02
|
|
18
|
+
|
|
19
|
+
!keyItemDisplayFrames 0060
|
|
20
|
+
|
|
21
|
+
RelicMenuScanIcon {
|
|
22
|
+
STA $0000
|
|
23
|
+
LDA $7F0010, X
|
|
24
|
+
TAY
|
|
25
|
+
|
|
26
|
+
rmis_loop:
|
|
27
|
+
DEC $0000
|
|
28
|
+
BMI rmis_end
|
|
29
|
+
LDA $0006, Y
|
|
30
|
+
TAY
|
|
31
|
+
BRA rmis_loop
|
|
32
|
+
|
|
33
|
+
rmis_end:
|
|
34
|
+
LDA $0028, Y
|
|
35
|
+
RTS
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
-----------------------------------------
|
|
39
|
+
|
|
40
|
+
inventory_menu.loc_02E8DE+ {
|
|
41
|
+
|
|
42
|
+
isa_key_entry:
|
|
43
|
+
COP [SetEntryHere]
|
|
44
|
+
LDA $7F0010, X
|
|
45
|
+
JSL $@KeyItemCountAndInit
|
|
46
|
+
STA $7F0012, X
|
|
47
|
+
STY $28
|
|
48
|
+
CPY #$0000
|
|
49
|
+
BNE kisa_key_shown
|
|
50
|
+
LDA #$2000
|
|
51
|
+
TSB $10
|
|
52
|
+
COP [SetEntryHere]
|
|
53
|
+
RTL
|
|
54
|
+
|
|
55
|
+
kisa_key_shown:
|
|
56
|
+
CMP #$0002
|
|
57
|
+
BCS kisa_multi_prep
|
|
58
|
+
LDA #$FFFF
|
|
59
|
+
STA $7F0018, X ;Negate the display timer
|
|
60
|
+
BRA kisa_key_prep
|
|
61
|
+
|
|
62
|
+
kisa_multi_prep:
|
|
63
|
+
LDA $0002 ;0002 is current index
|
|
64
|
+
AND #$00FF
|
|
65
|
+
STA $7F0014, X
|
|
66
|
+
LDA #$keyItemDisplayFrames
|
|
67
|
+
STA $7F0018, X ;7F0018 is the current display timer
|
|
68
|
+
LDA $7F0012, X
|
|
69
|
+
JSR $&InventoryCountersGenerateSprite
|
|
70
|
+
|
|
71
|
+
kisa_key_prep:
|
|
72
|
+
LDA #$2000
|
|
73
|
+
TRB $10
|
|
74
|
+
|
|
75
|
+
COP [SetEntryHere]
|
|
76
|
+
|
|
77
|
+
kisa_key_loop:
|
|
78
|
+
COP [AnimOneFrame]
|
|
79
|
+
LDA $7F0018, X
|
|
80
|
+
BMI kisa_key_loop_continue
|
|
81
|
+
BEQ kisa_key_swap
|
|
82
|
+
DEC
|
|
83
|
+
STA $7F0018, X
|
|
84
|
+
BRA kisa_key_loop_continue
|
|
85
|
+
|
|
86
|
+
kisa_key_swap:
|
|
87
|
+
LDA $7F0014, X
|
|
88
|
+
TAY
|
|
89
|
+
LDA $7F0010, X
|
|
90
|
+
JSL $@KeyItemGetNext
|
|
91
|
+
STA $7F0014, X
|
|
92
|
+
STY $28
|
|
93
|
+
LDA #$keyItemDisplayFrames
|
|
94
|
+
STA $7F0018, X
|
|
95
|
+
STZ $2A
|
|
96
|
+
BRA kisa_key_loop
|
|
97
|
+
|
|
98
|
+
kisa_key_loop_continue:
|
|
99
|
+
LDA $2A
|
|
100
|
+
BEQ kisa_key_loop
|
|
101
|
+
RTL
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
---------------------------------------------
|
|
105
|
+
|
|
106
|
+
inventory_menu.ShowAllItemSlots! {
|
|
107
|
+
LDA $18
|
|
108
|
+
BEQ sais_entry_normal
|
|
109
|
+
LDA #$1000
|
|
110
|
+
TRB $10
|
|
111
|
+
LDA #$8000
|
|
112
|
+
LDY #$&isa_key_entry
|
|
113
|
+
BRA sais_entry_check
|
|
114
|
+
|
|
115
|
+
sais_entry_normal:
|
|
116
|
+
LDA #$8000
|
|
117
|
+
TRB $10
|
|
118
|
+
LDA #$1000
|
|
119
|
+
LDY #$&SlotActorEvaluate
|
|
120
|
+
|
|
121
|
+
sais_entry_check:
|
|
122
|
+
BIT $10
|
|
123
|
+
BEQ loc_02EB22
|
|
124
|
+
RTS
|
|
125
|
+
|
|
126
|
+
inventory_menu.loc_02EB22!:
|
|
127
|
+
TSB $10
|
|
128
|
+
LDA #$1000
|
|
129
|
+
TSB $06EE
|
|
130
|
+
STZ $00DA
|
|
131
|
+
|
|
132
|
+
LDA #$000F
|
|
133
|
+
STY $0000
|
|
134
|
+
STA $0002
|
|
135
|
+
LDA $7F0010, X
|
|
136
|
+
TAY
|
|
137
|
+
|
|
138
|
+
inventory_menu.loc_02EB32!:
|
|
139
|
+
LDA $0010, Y
|
|
140
|
+
AND #$DFFF
|
|
141
|
+
STA $0010, Y
|
|
142
|
+
|
|
143
|
+
LDA $0000
|
|
144
|
+
STA $0000, Y
|
|
145
|
+
LDA #$0000
|
|
146
|
+
STA $0028, Y
|
|
147
|
+
STA $0008, Y
|
|
148
|
+
STA $002A, Y
|
|
149
|
+
|
|
150
|
+
LDA $0006, Y
|
|
151
|
+
TAY
|
|
152
|
+
DEC $0002
|
|
153
|
+
BPL loc_02EB32
|
|
154
|
+
RTS
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
-------------------------------------
|
|
158
|
+
|
|
159
|
+
inventory_menu.HideAllItemSlots! {
|
|
160
|
+
LDA $10
|
|
161
|
+
BIT #$9000
|
|
162
|
+
BNE loc_02EB4D
|
|
163
|
+
RTS
|
|
164
|
+
|
|
165
|
+
inventory_menu.loc_02EB4D!:
|
|
166
|
+
LDA #$1000
|
|
167
|
+
TRB $06EE
|
|
168
|
+
STZ $00DA
|
|
169
|
+
LDA #$9000
|
|
170
|
+
TRB $10
|
|
171
|
+
LDA #$000F
|
|
172
|
+
STA $0000
|
|
173
|
+
LDA $7F0010, X
|
|
174
|
+
TAY
|
|
175
|
+
|
|
176
|
+
;...
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
-----------------------------------------------
|
|
180
|
+
|
|
181
|
+
inventory_menu.ShowEquipCursor! {
|
|
182
|
+
LDA $18
|
|
183
|
+
BNE HideEquipCursor
|
|
184
|
+
LDA $inventoryEquippedIndex
|
|
185
|
+
BMI HideEquipCursor
|
|
186
|
+
LDA $7F0012, X
|
|
187
|
+
TAY
|
|
188
|
+
LDA $0010, Y
|
|
189
|
+
AND #$DFFF
|
|
190
|
+
STA $0010, Y
|
|
191
|
+
RTS
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
-----------------------------------------------
|
|
195
|
+
|
|
196
|
+
system_strings.consolestring_01E962! |[PAL:0][POS:96,5]View acquired[DBL]Relics.|
|
|
197
|
+
|
|
198
|
+
system_strings.consolestring_01E9B7! |[PAL:0][POS:96,5][TBL:@item_name_line_table,AE8][TBL:@item_description_table,AE8]|
|
|
199
|
+
|
|
200
|
+
system_strings.consolestring_01EA27! |[PAL:0][POS:84,5]View[DBL]Relics|
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
inventory_menu.DiscardGridLoop!:
|
|
204
|
+
JSR $&PositionGridCursor
|
|
205
|
+
COP [RunBg3Script] ( @system_strings.consolestring_01E912 )
|
|
206
|
+
LDA $22
|
|
207
|
+
JSR $&RelicMenuScanIcon
|
|
208
|
+
STA $itemAbilityIndex
|
|
209
|
+
COP [RunBg3Script] ( @system_strings.consolestring_01E9D0 )
|
|
210
|
+
COP [SetEntryHereAndYield]
|
|
211
|
+
COP [BranchIfPressed] ( #$4000, &DiscardCancelTab )
|
|
212
|
+
;COP [BranchIfPressed] ( #$8000, &DiscardAttempt )
|
|
213
|
+
PEA $&DiscardGridLoop-1
|
|
214
|
+
COP [BranchIfPressed] ( #$0800, &GridCursorUp )
|
|
215
|
+
COP [BranchIfPressed] ( #$0400, &GridCursorDown )
|
|
216
|
+
COP [BranchIfPressed] ( #$0200, &GridCursorLeft )
|
|
217
|
+
COP [BranchIfPressed] ( #$0100, &GridCursorRight )
|
|
218
|
+
PLA
|
|
219
|
+
RTL
|
|
220
|
+
|
|
221
|
+
inventory_menu.InventoryMenuInit- {
|
|
222
|
+
LDA #$1000
|
|
223
|
+
TSB $06EE
|
|
224
|
+
STZ $00DA
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
inventory_menu.loc_02E3AB!:
|
|
228
|
+
COP [SpawnAfterFlags] ( @InventorySlotActor, #$1800 )
|
|
229
|
+
DEC $24
|
|
230
|
+
BPL loc_02E3AB
|
|
231
|
+
TYA
|
|
232
|
+
STA $7F0010, X
|
|
233
|
+
COP [SpawnAfterFlags] ( @EquipCursorActor, #$0802 )
|
|
234
|
+
TYA
|
|
235
|
+
STA $7F0012, X
|
|
236
|
+
LDA $inventoryEquippedIndex
|
|
237
|
+
STA $1A
|
|
238
|
+
JSR $&PositionEquipCursor
|
|
239
|
+
COP [SpawnAfterFlags] ( @EquippedItemDisplay, #$0800 )
|
|
240
|
+
TYA
|
|
241
|
+
STA $7F0018, X
|
|
242
|
+
COP [SpawnAfterFlags] ( @StatusAbilityRow2, #$0800 )
|
|
243
|
+
COP [SpawnAfterFlags] ( @StatusAbilityRow1, #$0800 )
|
|
244
|
+
COP [SpawnAfterFlags] ( @StatusAbilityRow0, #$0800 )
|
|
245
|
+
TYA
|
|
246
|
+
STA $7F001A, X
|
|
247
|
+
COP [SetEntryHereAndYield]
|
|
248
|
+
STZ $inventoryTabIndex
|
|
249
|
+
LDA #$1000
|
|
250
|
+
TSB $10
|