@gaialabs/iog-baserom 0.2.7 → 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 -24
- 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,60 @@
|
|
|
1
|
+
; ==============================================================================
|
|
2
|
+
; Console BCD tag - hex digit output for nibbles A-F
|
|
3
|
+
; ==============================================================================
|
|
4
|
+
; What it does: When formatting BCD/console numeric tags, emits ASCII A-F for
|
|
5
|
+
; nibbles 10-15 instead of treating them as decimal digits only.
|
|
6
|
+
; Vanilla behavior: Nibbles always map to '0'-'9' via ORA #$30.
|
|
7
|
+
; Hooks (overrides): ConsoleStringRenderer loc_03ED90 BCD digit loop.
|
|
8
|
+
; Depends on: ConsoleStringRenderer VRAM buffer $7F0200, X cursor.
|
|
9
|
+
; Hazards/notes: Alternates SEP/REP around 16-bit STA to buffer; Y source byte.
|
|
10
|
+
; ==============================================================================
|
|
11
|
+
|
|
12
|
+
----------------------------------------------------------
|
|
13
|
+
|
|
14
|
+
ConsoleStringRenderer.loc_03ED90! {
|
|
15
|
+
LDA $0000, Y
|
|
16
|
+
AND #$0F
|
|
17
|
+
CMP #$0A
|
|
18
|
+
BMI bcd_numeric1
|
|
19
|
+
|
|
20
|
+
CLC
|
|
21
|
+
ADC #$37
|
|
22
|
+
BRA bcd_store1
|
|
23
|
+
|
|
24
|
+
bcd_numeric1:
|
|
25
|
+
ORA #$30
|
|
26
|
+
|
|
27
|
+
bcd_store1:
|
|
28
|
+
REP #$20
|
|
29
|
+
DEX
|
|
30
|
+
DEX
|
|
31
|
+
STA $7F0200, X
|
|
32
|
+
SEP #$20
|
|
33
|
+
DEC $000E
|
|
34
|
+
BEQ loc_03EDC1
|
|
35
|
+
LDA $0000, Y
|
|
36
|
+
INY
|
|
37
|
+
;AND #$F0
|
|
38
|
+
LSR
|
|
39
|
+
LSR
|
|
40
|
+
LSR
|
|
41
|
+
LSR
|
|
42
|
+
CMP #$0A
|
|
43
|
+
BMI bcd_numeric2
|
|
44
|
+
|
|
45
|
+
CLC
|
|
46
|
+
ADC #$37
|
|
47
|
+
BRA bcd_store2
|
|
48
|
+
|
|
49
|
+
bcd_numeric2:
|
|
50
|
+
ORA #$30
|
|
51
|
+
|
|
52
|
+
bcd_store2:
|
|
53
|
+
REP #$20
|
|
54
|
+
DEX
|
|
55
|
+
DEX
|
|
56
|
+
STA $7F0200, X
|
|
57
|
+
SEP #$20
|
|
58
|
+
DEC $000E
|
|
59
|
+
BNE loc_03ED90
|
|
60
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
; ==============================================================================
|
|
2
|
+
; HUD tilemap and status line layout
|
|
3
|
+
; ==============================================================================
|
|
4
|
+
; What it does: Replaces LoadHudTilemap stream and BG3 DMA size/dest for a
|
|
5
|
+
; three-row HUD; updates HP/gem console strings; PreserveHud clear size $C0.
|
|
6
|
+
; Vanilla behavior: 159-word HudTilemapData, $0140 preserved clear, old positions.
|
|
7
|
+
; Hooks (overrides): scene_lifecycle HudTilemapData; camera_tilemap loc_02B06D/078;
|
|
8
|
+
; vram_buffer_clear ClearBg3TilemapBuffer_PreserveHud; system_strings HUD lines.
|
|
9
|
+
; Depends on: scene_lifecycle LoadHudTilemap caller, system_core RunBg3Script.
|
|
10
|
+
; State: $09EC display flags, VRAM $7820 tilemap, $00DA staging index.
|
|
11
|
+
; Hazards/notes: PreserveHud loop still starts at $0140; DMA count $00C0 words.
|
|
12
|
+
; ==============================================================================
|
|
13
|
+
|
|
14
|
+
scene_lifecycle.HudTilemapData! [
|
|
15
|
+
#$2CCE ;06
|
|
16
|
+
#$2CCF ;07
|
|
17
|
+
#$0000 ;08
|
|
18
|
+
#$0008 ;09
|
|
19
|
+
#$ECEF ;0A
|
|
20
|
+
#$2CDA ;0B
|
|
21
|
+
#$2CDB ;0C
|
|
22
|
+
#$2CDC ;0D
|
|
23
|
+
#$2CDD ;0D
|
|
24
|
+
#$ACE9 ;0D
|
|
25
|
+
#$ECE9 ;0D
|
|
26
|
+
#$6CDD ;0D
|
|
27
|
+
#$6CDC ;10
|
|
28
|
+
#$6CDB ;11
|
|
29
|
+
#$6CDA ;12
|
|
30
|
+
#$ACEF ;13
|
|
31
|
+
#$0000 ;14
|
|
32
|
+
#$0008 ;15
|
|
33
|
+
#$6CCF ;16
|
|
34
|
+
#$6CCE ;17
|
|
35
|
+
#$2CDE ;1A
|
|
36
|
+
#$0000 ;1B
|
|
37
|
+
#$000A ;1C
|
|
38
|
+
#$2CEA ;1D
|
|
39
|
+
#$2CD9 ;1E
|
|
40
|
+
#$0000 ;1F
|
|
41
|
+
#$0001 ;20
|
|
42
|
+
#$2CED ;21
|
|
43
|
+
#$0000 ;1F
|
|
44
|
+
#$0002 ;20
|
|
45
|
+
#$6CED ;22
|
|
46
|
+
#$0000 ;23
|
|
47
|
+
#$0002 ;24
|
|
48
|
+
#$6CEA ;25
|
|
49
|
+
#$0000 ;26
|
|
50
|
+
#$000A ;27
|
|
51
|
+
#$6CDE ;28
|
|
52
|
+
#$2CEE ;2B
|
|
53
|
+
#$0000 ;2C
|
|
54
|
+
#$000A ;2D
|
|
55
|
+
#$2CFA ;2E
|
|
56
|
+
#$2CFB ;2F
|
|
57
|
+
#$2CFC ;30
|
|
58
|
+
#$2CFD ;31
|
|
59
|
+
#$2CE9 ;33
|
|
60
|
+
#$6CE9 ;33
|
|
61
|
+
#$6CFD ;32
|
|
62
|
+
#$6CFC ;32
|
|
63
|
+
#$6CFB ;34
|
|
64
|
+
#$6CFA ;35
|
|
65
|
+
#$0000 ;36
|
|
66
|
+
#$000A ;37
|
|
67
|
+
#$6CEE ;38
|
|
68
|
+
#$0000 ;39
|
|
69
|
+
#$0000 ;3A
|
|
70
|
+
]
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
------------------------------------------------
|
|
75
|
+
|
|
76
|
+
;DMA size
|
|
77
|
+
camera_tilemap.loc_02B06D! {
|
|
78
|
+
AND #$DF
|
|
79
|
+
STA $09EC
|
|
80
|
+
LDX #$00C0 ;Three lines of tiles
|
|
81
|
+
STX $DAS0L
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
----------------------------------------------
|
|
85
|
+
|
|
86
|
+
;VRAM DMA arguments (when copying BG3 layer)
|
|
87
|
+
camera_tilemap.loc_02B078! {
|
|
88
|
+
LDX #$7820
|
|
89
|
+
STX $VMADDL
|
|
90
|
+
LDX #$0240
|
|
91
|
+
STX $A1T0L
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
---------------------------------------------
|
|
95
|
+
|
|
96
|
+
vram_buffer_clear.ClearBg3TilemapBuffer_PreserveHud! {
|
|
97
|
+
PHX
|
|
98
|
+
PHP
|
|
99
|
+
REP #$20
|
|
100
|
+
LDA #$0000
|
|
101
|
+
LDX #$00C0
|
|
102
|
+
BRA ClearVramBufferLoop
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
system_strings.consolestring_01E7F6! |[POS:42,0][PAL:8][HP][POS:5A,0][PAL:14][BCD:1,AD8][POS:64,0][NUM:AD6]|
|
|
106
|
+
|
|
107
|
+
system_strings.consolestring_01E818! |[PAL:4][POS:6A,0][HE]|
|
|
108
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
|
|
2
|
+
; ==============================================================================
|
|
3
|
+
; Neil's father (EU95) - chair interact activator in prologue
|
|
4
|
+
; ==============================================================================
|
|
5
|
+
; What it does: Spawns a hidden activator at the chair so the player can talk
|
|
6
|
+
; to Neil's father during the prologue wait (flag $A8 bit 1).
|
|
7
|
+
; Vanilla behavior: Scene sets interact on code_07E21C only; no chair activator.
|
|
8
|
+
; Hooks (overrides): eu95_neils_father code_07E1BD prepend spawn;
|
|
9
|
+
; code_07E21C append activator actor script.
|
|
10
|
+
; Adds: eu95_neils_father_activator (SpawnAfterOffsetFlags child).
|
|
11
|
+
; Depends on: eu95_neils_father scene, flag byte $A8.
|
|
12
|
+
; Hazards/notes: Activator uses SetInteractHandler on parent code_07E21C.
|
|
13
|
+
; ==============================================================================
|
|
14
|
+
|
|
15
|
+
------------------------------------------
|
|
16
|
+
|
|
17
|
+
eu95_neils_father.code_07E1BD- {
|
|
18
|
+
COP [SpawnAfterOffsetFlags] ( @eu95_neils_father_activator, #$0000, #$FFF0, #$7000 )
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
eu95_neils_father.code_07E21C+ {
|
|
22
|
+
eu95_neils_father_activator:
|
|
23
|
+
COP [SetInteractHandler] ( &code_07E21C )
|
|
24
|
+
COP [WaitOnFlagByte] ( #A8, #01 )
|
|
25
|
+
COP [Die]
|
|
26
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
; ==============================================================================
|
|
2
|
+
; Pyramid entrance portal - exit warp target from puzzle room
|
|
3
|
+
; ==============================================================================
|
|
4
|
+
; What it does: Portal dialog branch: from scene $CC warps to ($01F8,$0130)
|
|
5
|
+
; instead of the default ($01F8,$0380) before scene change COP 26.
|
|
6
|
+
; Vanilla behavior: code_08B6C6 always uses the $0380 Y coordinate for scene CC.
|
|
7
|
+
; Hooks (overrides): pyCC_entrance_portal code_08B6C6.
|
|
8
|
+
; Depends on: pyCC_entrance_portal, py_actor_08B6F7 spawn, $0644 scene id.
|
|
9
|
+
; State: Sets player flag bit $2000 on $0010,Y; $0648/$064A transition words.
|
|
10
|
+
; Hazards/notes: COP 9C spawn; scene $CC check on $0644.
|
|
11
|
+
; ==============================================================================
|
|
12
|
+
|
|
13
|
+
!scene_current 0644
|
|
14
|
+
!player_actor 09AA
|
|
15
|
+
|
|
16
|
+
-------------------------------------------------
|
|
17
|
+
?INCLUDE 'pyCC_entrance_portal'
|
|
18
|
+
?INCLUDE 'py_actor_08B6F4'
|
|
19
|
+
-------------------------------------------------
|
|
20
|
+
|
|
21
|
+
pyCC_entrance_portal.code_08B6C6! {
|
|
22
|
+
COP [BF] ( &dialogstring_08B74B )
|
|
23
|
+
LDY $player_actor
|
|
24
|
+
LDA $0010, Y
|
|
25
|
+
ORA #$2000
|
|
26
|
+
STA $0010, Y
|
|
27
|
+
COP [9C] ( @code_08B6F7, #$1800 )
|
|
28
|
+
LDA #$0303
|
|
29
|
+
STA $0648
|
|
30
|
+
LDA #$0303
|
|
31
|
+
STA $064A
|
|
32
|
+
LDA $scene_current
|
|
33
|
+
CMP #$00CC
|
|
34
|
+
BEQ entrance_portal_top
|
|
35
|
+
COP [26] ( #CC, #$01F8, #$0380, #03, #$4400 )
|
|
36
|
+
RTL
|
|
37
|
+
|
|
38
|
+
entrance_portal_top:
|
|
39
|
+
COP [26] ( #CC, #$01F8, #$0130, #03, #$4400 )
|
|
40
|
+
RTL
|
|
41
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
; ==============================================================================
|
|
2
|
+
; Scene title box - centered dual-line rendering
|
|
3
|
+
; ==============================================================================
|
|
4
|
+
; What it does: Measures title strings (including extended $CC width tags) and
|
|
5
|
+
; renders main plus subtitle via two DialogStringRenderer passes with computed
|
|
6
|
+
; horizontal padding on the stack.
|
|
7
|
+
; Vanilla behavior: Fixed-position title render without width-aware centering.
|
|
8
|
+
; Hooks (overrides): DisplaySceneTitle loc_02A12C (render), loc_02A17E (width).
|
|
9
|
+
; Depends on: text_measure include, DialogStringRenderer JSL.
|
|
10
|
+
; State: $00B4 wait flag ($E0), string ptr $3E/$40, VRAM cursor $0998.
|
|
11
|
+
; Hazards/notes: Stack layout for two renderer calls; $CA/$E0 accent bytes.
|
|
12
|
+
; ==============================================================================
|
|
13
|
+
|
|
14
|
+
-----------------------------------------------
|
|
15
|
+
?INCLUDE 'text_measure'
|
|
16
|
+
|
|
17
|
+
DisplaySceneTitle.loc_02A12C! {
|
|
18
|
+
PHP
|
|
19
|
+
PHB
|
|
20
|
+
|
|
21
|
+
PEA #$CA01
|
|
22
|
+
INC
|
|
23
|
+
LSR
|
|
24
|
+
PHA
|
|
25
|
+
PEA #$C707
|
|
26
|
+
|
|
27
|
+
CLC
|
|
28
|
+
SBC #$10
|
|
29
|
+
EOR #$FF
|
|
30
|
+
PHA
|
|
31
|
+
|
|
32
|
+
LDA #$C1
|
|
33
|
+
PHA
|
|
34
|
+
|
|
35
|
+
TSC
|
|
36
|
+
LDY $3E
|
|
37
|
+
PHY
|
|
38
|
+
TAY
|
|
39
|
+
INY
|
|
40
|
+
|
|
41
|
+
LDA $40
|
|
42
|
+
PHA
|
|
43
|
+
|
|
44
|
+
LDA #$E0
|
|
45
|
+
STA $00B4
|
|
46
|
+
STZ $00B5
|
|
47
|
+
|
|
48
|
+
REP #$20
|
|
49
|
+
JSL $@DialogStringRenderer
|
|
50
|
+
PLB
|
|
51
|
+
PLY
|
|
52
|
+
|
|
53
|
+
PLA
|
|
54
|
+
PLA
|
|
55
|
+
PLA
|
|
56
|
+
JSL $@DialogStringRenderer
|
|
57
|
+
|
|
58
|
+
PLB
|
|
59
|
+
PLB
|
|
60
|
+
PLP
|
|
61
|
+
RTL
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
-----------------------------------------------
|
|
65
|
+
;Take extended accent characters into account during char counts
|
|
66
|
+
|
|
67
|
+
DisplaySceneTitle.loc_02A17E! {
|
|
68
|
+
LDA [$3E], Y
|
|
69
|
+
CMP #$CA
|
|
70
|
+
BEQ loc_02A1A7
|
|
71
|
+
CMP #$E0
|
|
72
|
+
BCS loc_02A1A2
|
|
73
|
+
CMP #$C0
|
|
74
|
+
BCC loc_02A1A2
|
|
75
|
+
CMP #$CC
|
|
76
|
+
BNE loc_02A197
|
|
77
|
+
INY
|
|
78
|
+
LDA [$3E], Y
|
|
79
|
+
INY
|
|
80
|
+
CLC
|
|
81
|
+
ADC $00
|
|
82
|
+
STA $00
|
|
83
|
+
BRA loc_02A17E
|
|
84
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
; ==============================================================================
|
|
2
|
+
; Edward Castle flower - thank-you dialog on interact
|
|
3
|
+
; ==============================================================================
|
|
4
|
+
; What it does: Replaces the flower's empty interact handler with dialog when
|
|
5
|
+
; the player uses the tile (COP D0/D1 routes to thankful_flower_interact).
|
|
6
|
+
; Vanilla behavior: code_09BC4C is an empty interact stub after SetInteractHandler.
|
|
7
|
+
; Hooks (overrides): ec11_flower code_09BC4C (prepend COP interact wiring).
|
|
8
|
+
; Adds: thankful_flower_interact, thankful_flower_str dialog text.
|
|
9
|
+
; Depends on: ec11_flower scene actor.
|
|
10
|
+
; Hazards/notes: COP D0/D1; RTL from interact handler.
|
|
11
|
+
; ==============================================================================
|
|
12
|
+
|
|
13
|
+
-------------------------------------
|
|
14
|
+
?INCLUDE 'ec11_flower'
|
|
15
|
+
-------------------------------------
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
ec11_flower.code_09BC4C-= {
|
|
19
|
+
COP [D1] ( #$0113, #01, &thankful_flower_interact )
|
|
20
|
+
COP [D0] ( #02, #01, &thankful_flower_interact )
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
thankful_flower_interact {
|
|
24
|
+
COP [BF] ( &thankful_flower_str )
|
|
25
|
+
RTL
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
thankful_flower_str `[TPL:18][TPL:D]Thank you, that was[N]lovely![END]`
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
; ==============================================================================
|
|
2
|
+
; Misc engine tweaks - boot, save, HUD font, credits string
|
|
3
|
+
; ==============================================================================
|
|
4
|
+
; What it does: Skips PAL boot lockout, silences empty-slot item message,
|
|
5
|
+
; removes continue from Gaia save confirm, retitles credits, tints inventory
|
|
6
|
+
; menu palette RAM at init.
|
|
7
|
+
; Vanilla behavior: PAL shows region warning; UseItem_None prints text;
|
|
8
|
+
; GaiaSaveConfirm offers continue; licensed Nintendo credits string.
|
|
9
|
+
; Hooks (overrides): sFB_boot_logo BootLogoPalLockout; item_use_system UseItem_None;
|
|
10
|
+
; sE6_gaia GaiaSaveConfirm; sF7_credits dialogstring_09F2FA; inventory_menu
|
|
11
|
+
; InventoryMenuInit prepend (palette stores).
|
|
12
|
+
; Depends on: chunk includes listed below, SaveGameState_Scene JSL.
|
|
13
|
+
; Hazards/notes: GaiaSaveConfirm masks joypad $FFF0 during COP DA; boot patch
|
|
14
|
+
; is unconditional BRA to NTSC path.
|
|
15
|
+
; ==============================================================================
|
|
16
|
+
|
|
17
|
+
?BANK 03
|
|
18
|
+
|
|
19
|
+
?INCLUDE 'chunk_028000'
|
|
20
|
+
?INCLUDE 'chunk_038000'
|
|
21
|
+
?INCLUDE 'chunk_03BAE1'
|
|
22
|
+
?INCLUDE 'system_strings'
|
|
23
|
+
?INCLUDE 'sE6_gaia'
|
|
24
|
+
?INCLUDE 'sFB_actor_0BC8BA'
|
|
25
|
+
|
|
26
|
+
!token 00E6
|
|
27
|
+
!joypad_mask_std 065A
|
|
28
|
+
!camera_offset_x 06D6
|
|
29
|
+
!camera_offset_y 06D8
|
|
30
|
+
!camera_bounds_x 06DA
|
|
31
|
+
!camera_bounds_y 06DC
|
|
32
|
+
!VMADDL 2116
|
|
33
|
+
!A1T0L 4302
|
|
34
|
+
!DAS0L 4305
|
|
35
|
+
|
|
36
|
+
------------------------------------------------
|
|
37
|
+
|
|
38
|
+
;Button flags
|
|
39
|
+
;8000 - (B) Attack/Talk
|
|
40
|
+
;4000 - (Y) Item/Cancel
|
|
41
|
+
;2000 - (SEL) Menu
|
|
42
|
+
;1000 - (STA) Pause
|
|
43
|
+
;0800 - UP
|
|
44
|
+
;0400 - DOWN
|
|
45
|
+
;0200 - LEFT
|
|
46
|
+
;0100 - RIGHT
|
|
47
|
+
;0080 - (A) Nothing
|
|
48
|
+
;0040 - (X) Nothing
|
|
49
|
+
;0020 - (L) Spin
|
|
50
|
+
;0010 - (R) Spin
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
---------------------------------------------------------
|
|
54
|
+
|
|
55
|
+
;Prevent drawing of HUD BG layers
|
|
56
|
+
;code_03DED5 {
|
|
57
|
+
; PHP
|
|
58
|
+
; REP #$20
|
|
59
|
+
; LDA #$0001
|
|
60
|
+
; TSB $09EC
|
|
61
|
+
; PLP
|
|
62
|
+
; RTL
|
|
63
|
+
;}
|
|
64
|
+
|
|
65
|
+
-------------------------------------------------
|
|
66
|
+
;Prevent unequipped message
|
|
67
|
+
item_use_system.UseItem_None! {
|
|
68
|
+
RTS
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
------------------------------------------------
|
|
72
|
+
;Disable continue option when saving
|
|
73
|
+
|
|
74
|
+
sE6_gaia.GaiaSaveConfirm! {
|
|
75
|
+
LDA $0D8C
|
|
76
|
+
JSL $@SaveGameState_Scene
|
|
77
|
+
COP [07] ( #29 )
|
|
78
|
+
LDA #$FFF0
|
|
79
|
+
TSB $joypadMaskStd
|
|
80
|
+
COP [DA] ( #3B )
|
|
81
|
+
LDA #$FFF0
|
|
82
|
+
TRB $joypadMaskStd
|
|
83
|
+
;COP [BF] ( &dialogstring_08DDFE )
|
|
84
|
+
;COP [BE] ( #02, #01, &code_list_08DBD4 )
|
|
85
|
+
BRA GaiaThenGo
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
-----------------------------------------------
|
|
89
|
+
;Disable region protection
|
|
90
|
+
|
|
91
|
+
sFB_boot_logo.BootLogoPalLockout! {
|
|
92
|
+
BRA BootLogoNtsc
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
-----------------------------------------------
|
|
96
|
+
?INCLUDE 'sF7_credits'
|
|
97
|
+
|
|
98
|
+
sF7_credits.dialogstring_09F2FA! `[PAL:0][DLG:44,1] Built With GaiaLabs[N][PAL:4] By Kassiven[N][PAL:0] Ǫįņţ[N] ęťĔŇ[END]`!
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
--------------------------------------------
|
|
102
|
+
?INCLUDE 'inventory_menu'
|
|
103
|
+
--------------------------------------------
|
|
104
|
+
;Force some palette colors for cleaner font
|
|
105
|
+
inventory_menu.InventoryMenuInit- [
|
|
106
|
+
LDA #$4063
|
|
107
|
+
STA $7F0A06
|
|
108
|
+
LDA #$2180
|
|
109
|
+
STA $7F0A2E
|
|
110
|
+
]
|
|
111
|
+
|
|
@@ -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
|
+
}
|