@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
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
; ==============================================================================
|
|
2
|
+
; Gold ship crew - replacement sprite map (bank default from build)
|
|
3
|
+
; ==============================================================================
|
|
4
|
+
; What it does: Defines sprite_set_list and animation groups for gold-ship
|
|
5
|
+
; NPC/enemy visuals (multi-part groups with CHR references in $07xx/$09xx).
|
|
6
|
+
; Vanilla behavior: Original ROM used different crew sprite data (this file replaces
|
|
7
|
+
; the spm gold ship sprite asset block in the baserom set).
|
|
8
|
+
; Hooks (overrides): none (standalone sprite asset file).
|
|
9
|
+
; Depends on: Referenced by gold ship scene actors via metasprite pointer.
|
|
10
|
+
; Hazards/notes: Pure data; sprite_group headers set flip and frame timing fields.
|
|
11
|
+
; ==============================================================================
|
|
1
12
|
|
|
2
13
|
---------------------------------------------
|
|
3
14
|
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
; ==============================================================================
|
|
2
|
+
; World map Mode 7 init - overworld text palette profile
|
|
3
|
+
; ==============================================================================
|
|
4
|
+
; What it does: On scene $FE Mode 7 thinker init, sets $7F0B22-$7F0B26 to the
|
|
5
|
+
; enhanced font gradient instead of all $FFFF and keeps camera math unchanged.
|
|
6
|
+
; Vanilla behavior: Mode7InitEntry clears $7F0B22/$7F0B24 to $FFFF only.
|
|
7
|
+
; Hooks (overrides): mode7_perspective Mode7InitEntry (world map thinker).
|
|
8
|
+
; Depends on: sFE_proc_03A940 include (world map scene block).
|
|
9
|
+
; State: $00CA/$00CC centre, $06C6/$06CA scroll override, $7F0B22-$7F0B26 colors.
|
|
10
|
+
; Hazards/notes: Runs at thinker entry; M7SEL $80 unchanged from vanilla.
|
|
11
|
+
; ==============================================================================
|
|
12
|
+
|
|
13
|
+
----------------------------------------------
|
|
14
|
+
?INCLUDE 'sFE_proc_03A940'
|
|
15
|
+
----------------------------------------------
|
|
16
|
+
|
|
17
|
+
mode7_perspective.Mode7InitEntry! {
|
|
18
|
+
SEP #$20
|
|
19
|
+
LDA #$80
|
|
20
|
+
STA $M7SEL
|
|
21
|
+
REP #$20
|
|
22
|
+
LDA #$7FFF
|
|
23
|
+
STA $7F0B22
|
|
24
|
+
LDA #$53DE
|
|
25
|
+
STA $7F0B24
|
|
26
|
+
LDA #$01B1
|
|
27
|
+
STA $7F0B26
|
|
28
|
+
LDA $0D54
|
|
29
|
+
STA $00CA
|
|
30
|
+
SEC
|
|
31
|
+
SBC #$0080
|
|
32
|
+
ORA #$8000
|
|
33
|
+
STA $06C6
|
|
34
|
+
LDA $0D56
|
|
35
|
+
STA $00CC
|
|
36
|
+
SEC
|
|
37
|
+
SBC #$0070
|
|
38
|
+
ORA #$8000
|
|
39
|
+
STA $06CA
|
|
40
|
+
STZ $00B6
|
|
41
|
+
STZ $00BC
|
|
42
|
+
LDA #$0400
|
|
43
|
+
STA $00B8
|
|
44
|
+
}
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
|
|
2
|
+
; ==============================================================================
|
|
3
|
+
; Prologue text rendering - palette bundles and thinker hooks
|
|
4
|
+
; ==============================================================================
|
|
5
|
+
; What it does: Prologue thinkers copy static CGRAM to $7F0B20-$7F0B26 before
|
|
6
|
+
; fade-in and rewrite sprite palette lines on fade-out; custom fade bundles
|
|
7
|
+
; drive the enhanced font colors (indices $75/$76 in palette_bundles).
|
|
8
|
+
; Vanilla behavior: Thinkers only run COP fade commands without CGRAM/sprite edits.
|
|
9
|
+
; Hooks (overrides): pr_thinkers e_pr_thinker_0BD031/039; palette_bundles
|
|
10
|
+
; bundles and word tables for prologue fades.
|
|
11
|
+
; Depends on: pr_thinkers, palette_bundles table references.
|
|
12
|
+
; State: $7F0BE0-$7F0BE6 source colors, $7F0603 sprite pal lines, $00DA OAM count.
|
|
13
|
+
; Hazards/notes: Thinker COP scripts; palette rewrite loops use SEP #$20.
|
|
14
|
+
; ==============================================================================
|
|
15
|
+
|
|
16
|
+
!M7SEL 211A
|
|
17
|
+
|
|
18
|
+
----------------------------------------------
|
|
19
|
+
?INCLUDE 'pr_thinkers'
|
|
20
|
+
----------------------------------------------
|
|
21
|
+
|
|
22
|
+
pr_thinkers.e_pr_thinker_0BD031! {
|
|
23
|
+
COP [37] ( #75 )
|
|
24
|
+
COP [39]
|
|
25
|
+
|
|
26
|
+
LDA $7F0BE0
|
|
27
|
+
STA $7F0B20
|
|
28
|
+
LDA $7F0BE2
|
|
29
|
+
STA $7F0B22
|
|
30
|
+
LDA $7F0BE4
|
|
31
|
+
STA $7F0B24
|
|
32
|
+
LDA $7F0BE6
|
|
33
|
+
STA $7F0B26
|
|
34
|
+
|
|
35
|
+
PHX
|
|
36
|
+
PHY
|
|
37
|
+
|
|
38
|
+
LDX #$0000
|
|
39
|
+
LDA $00DA
|
|
40
|
+
LSR
|
|
41
|
+
LSR
|
|
42
|
+
TAY
|
|
43
|
+
|
|
44
|
+
SEP #$20
|
|
45
|
+
LDA #$23
|
|
46
|
+
|
|
47
|
+
palswitch_top:
|
|
48
|
+
DEY
|
|
49
|
+
BMI palswitch_next
|
|
50
|
+
|
|
51
|
+
STA $7F0603, X
|
|
52
|
+
INX
|
|
53
|
+
INX
|
|
54
|
+
INX
|
|
55
|
+
INX
|
|
56
|
+
BRA palswitch_top
|
|
57
|
+
|
|
58
|
+
palswitch_next:
|
|
59
|
+
REP #$20
|
|
60
|
+
PLY
|
|
61
|
+
PLX
|
|
62
|
+
|
|
63
|
+
COP [3D]
|
|
64
|
+
RTL
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
---------------------------------------------
|
|
69
|
+
;Revert palette number for sprites before fade out
|
|
70
|
+
|
|
71
|
+
pr_thinkers.e_pr_thinker_0BD039! {
|
|
72
|
+
|
|
73
|
+
PHX
|
|
74
|
+
PHY
|
|
75
|
+
|
|
76
|
+
LDX #$0000
|
|
77
|
+
LDA $00DA
|
|
78
|
+
LSR
|
|
79
|
+
LSR
|
|
80
|
+
TAY
|
|
81
|
+
|
|
82
|
+
SEP #$20
|
|
83
|
+
LDA #$2F
|
|
84
|
+
|
|
85
|
+
palrevert_top:
|
|
86
|
+
DEY
|
|
87
|
+
BMI palrevert_next
|
|
88
|
+
|
|
89
|
+
STA $7F0603, X
|
|
90
|
+
INX
|
|
91
|
+
INX
|
|
92
|
+
INX
|
|
93
|
+
INX
|
|
94
|
+
BRA palrevert_top
|
|
95
|
+
|
|
96
|
+
palrevert_next:
|
|
97
|
+
REP #$20
|
|
98
|
+
PLY
|
|
99
|
+
PLX
|
|
100
|
+
|
|
101
|
+
COP [37] ( #76 )
|
|
102
|
+
COP [39]
|
|
103
|
+
COP [CC] ( #0F )
|
|
104
|
+
COP [3D]
|
|
105
|
+
RTL
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
----------------------------------------------
|
|
109
|
+
?INCLUDE 'palette_bundles'
|
|
110
|
+
----------------------------------------------
|
|
111
|
+
;Fade-in / out bundles
|
|
112
|
+
|
|
113
|
+
palette_bundles.palette_bundle_16D17B! [
|
|
114
|
+
palette-bundle < #10, &word_16D182, #F1, #05, #04 > ;00
|
|
115
|
+
]
|
|
116
|
+
|
|
117
|
+
palette_bundles.word_16D182! [
|
|
118
|
+
#$0000 ;00
|
|
119
|
+
#$0000 ;01
|
|
120
|
+
#$0000
|
|
121
|
+
|
|
122
|
+
#$0842 ;02
|
|
123
|
+
#$0442 ;03
|
|
124
|
+
#$0001
|
|
125
|
+
|
|
126
|
+
#$1084 ;04
|
|
127
|
+
#$0884 ;05
|
|
128
|
+
#$0022
|
|
129
|
+
|
|
130
|
+
#$18C6 ;06
|
|
131
|
+
#$10C6 ;07
|
|
132
|
+
#$0043
|
|
133
|
+
|
|
134
|
+
#$2108 ;08
|
|
135
|
+
#$1508 ;09
|
|
136
|
+
#$0064
|
|
137
|
+
|
|
138
|
+
#$294A ;0A
|
|
139
|
+
#$194A ;0B
|
|
140
|
+
#$0085
|
|
141
|
+
|
|
142
|
+
#$318C ;0C
|
|
143
|
+
#$218C ;0D
|
|
144
|
+
#$00A7
|
|
145
|
+
|
|
146
|
+
#$39CE ;0E
|
|
147
|
+
#$25CE ;0F
|
|
148
|
+
#$00C8
|
|
149
|
+
|
|
150
|
+
#$4210 ;10
|
|
151
|
+
#$2A10 ;11
|
|
152
|
+
#$00E9
|
|
153
|
+
|
|
154
|
+
#$4A52 ;12
|
|
155
|
+
#$3252 ;13
|
|
156
|
+
#$010A
|
|
157
|
+
|
|
158
|
+
#$5294 ;14
|
|
159
|
+
#$3694 ;15
|
|
160
|
+
#$010B
|
|
161
|
+
|
|
162
|
+
#$5AD6 ;16
|
|
163
|
+
#$3AD6 ;17
|
|
164
|
+
#$012C
|
|
165
|
+
|
|
166
|
+
#$6318 ;18
|
|
167
|
+
#$4318 ;19
|
|
168
|
+
#$014D
|
|
169
|
+
|
|
170
|
+
#$6B5A ;1A
|
|
171
|
+
#$475A ;1B
|
|
172
|
+
#$016F
|
|
173
|
+
|
|
174
|
+
#$739C ;1C
|
|
175
|
+
#$4B9C ;1D
|
|
176
|
+
#$0190
|
|
177
|
+
|
|
178
|
+
#$7FFF ;1E
|
|
179
|
+
#$53DE ;1F
|
|
180
|
+
#$01B1
|
|
181
|
+
]
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
palette_bundles.palette_bundle_16D1C2! [
|
|
185
|
+
palette-bundle < #10, &word_16D1C9, #F1, #05, #04 > ;00
|
|
186
|
+
]
|
|
187
|
+
|
|
188
|
+
palette_bundles.word_16D1C9! [
|
|
189
|
+
#$7FFF ;00
|
|
190
|
+
#$53DE ;01
|
|
191
|
+
#$01B1
|
|
192
|
+
|
|
193
|
+
#$739C ;02
|
|
194
|
+
#$4B9C ;03
|
|
195
|
+
#$0190
|
|
196
|
+
|
|
197
|
+
#$6B5A ;04
|
|
198
|
+
#$475A ;05
|
|
199
|
+
#$016F
|
|
200
|
+
|
|
201
|
+
#$6318 ;06
|
|
202
|
+
#$4318 ;07
|
|
203
|
+
#$014D
|
|
204
|
+
|
|
205
|
+
#$5AD6 ;08
|
|
206
|
+
#$3AD6 ;09
|
|
207
|
+
#$012C
|
|
208
|
+
|
|
209
|
+
#$5294 ;0A
|
|
210
|
+
#$3694 ;0B
|
|
211
|
+
#$010B
|
|
212
|
+
|
|
213
|
+
#$4A52 ;0C
|
|
214
|
+
#$3252 ;0D
|
|
215
|
+
#$010A
|
|
216
|
+
|
|
217
|
+
#$4210 ;0E
|
|
218
|
+
#$2A10 ;0F
|
|
219
|
+
#$00E9
|
|
220
|
+
|
|
221
|
+
#$39CE ;10
|
|
222
|
+
#$25CE ;11
|
|
223
|
+
#$00C8
|
|
224
|
+
|
|
225
|
+
#$318C ;12
|
|
226
|
+
#$218C ;13
|
|
227
|
+
#$00A7
|
|
228
|
+
|
|
229
|
+
#$294A ;14
|
|
230
|
+
#$194A ;15
|
|
231
|
+
#$0085
|
|
232
|
+
|
|
233
|
+
#$2108 ;16
|
|
234
|
+
#$1508 ;17
|
|
235
|
+
#$0064
|
|
236
|
+
|
|
237
|
+
#$18C6 ;18
|
|
238
|
+
#$10C6 ;19
|
|
239
|
+
#$0043
|
|
240
|
+
|
|
241
|
+
#$1084 ;1A
|
|
242
|
+
#$0884 ;1B
|
|
243
|
+
#$0022
|
|
244
|
+
|
|
245
|
+
#$0842 ;1C
|
|
246
|
+
#$0442 ;1D
|
|
247
|
+
#$0001
|
|
248
|
+
|
|
249
|
+
#$0000 ;1E
|
|
250
|
+
#$0000 ;1F
|
|
251
|
+
#$0000
|
|
252
|
+
]
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
; ==============================================================================
|
|
2
|
+
; Inventory slot actor - tab index and stack count display
|
|
3
|
+
; ==============================================================================
|
|
4
|
+
; What it does: Each inventory slot actor stores its grid index in $7F0010,X,
|
|
5
|
+
; reads the item byte into $28, and when non-empty draws a numeric stack
|
|
6
|
+
; count via InventoryCounters helpers before AnimOneFrame.
|
|
7
|
+
; Vanilla behavior: Slot actor only toggled visibility from $28 and animated.
|
|
8
|
+
; Hooks (overrides): inventory_menu InventorySlotActor, SlotActorEvaluate,
|
|
9
|
+
; loc_02E8D9, loc_02E8DE.
|
|
10
|
+
; Depends on: inventory_menu (ComputeSlotPosition), InventoryCounters.patch.
|
|
11
|
+
; State: $7F0010 slot index scratch, $28 item/frame, $2A refresh flag, $10 DP.
|
|
12
|
+
; Hazards/notes: SetEntryHere loops; COP calls require X = actor slot id.
|
|
13
|
+
; ==============================================================================
|
|
14
|
+
|
|
15
|
+
inventory_menu.InventorySlotActor! {
|
|
16
|
+
LDA $inventoryTabIndex
|
|
17
|
+
STA $7F0010, X
|
|
18
|
+
INC
|
|
19
|
+
STA $inventoryTabIndex
|
|
20
|
+
JSR $&ComputeSlotPosition
|
|
21
|
+
|
|
22
|
+
inventory_menu.SlotActorEvaluate!:
|
|
23
|
+
COP [SetEntryHere]
|
|
24
|
+
LDA $7F0010, X
|
|
25
|
+
TAY
|
|
26
|
+
LDA $inventorySlots, Y
|
|
27
|
+
AND #$00FF
|
|
28
|
+
STA $28
|
|
29
|
+
BNE loc_02E8D9
|
|
30
|
+
|
|
31
|
+
LDA #$2000
|
|
32
|
+
TSB $10
|
|
33
|
+
COP [SetEntryHere]
|
|
34
|
+
RTL
|
|
35
|
+
|
|
36
|
+
inventory_menu.loc_02E8D9!:
|
|
37
|
+
JSR $&InventoryCountersGetCount
|
|
38
|
+
STA $7F0012, X
|
|
39
|
+
JSR $&InventoryCountersGenerateSprite
|
|
40
|
+
|
|
41
|
+
LDA #$2000
|
|
42
|
+
TRB $10
|
|
43
|
+
|
|
44
|
+
inventory_menu.loc_02E8DE!:
|
|
45
|
+
COP [SetEntryHere]
|
|
46
|
+
COP [AnimOneFrame]
|
|
47
|
+
LDA $2A
|
|
48
|
+
BEQ loc_02E8DE
|
|
49
|
+
RTL
|
|
50
|
+
}
|