@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,30 @@
|
|
|
1
|
+
; ==============================================================================
|
|
2
|
+
; CellKeysAutoUse - auto-use mine keys on the double-locked cell door
|
|
3
|
+
; ==============================================================================
|
|
4
|
+
; What it does: At the mine foyer cell door, treats keys as already satisfied
|
|
5
|
+
; when key_item_flags say Mine Key A/B were auto-consumed, skipping inventory
|
|
6
|
+
; checks that vanilla BranchIfHasItem would require.
|
|
7
|
+
; Vanilla behavior: code_05D54B/code_05D552 each BranchIfHasItem (#0B / #0C) before
|
|
8
|
+
; dialog or opening; missing keys show two-keyhole messages (dm44_cell_door).
|
|
9
|
+
; Hooks (overrides): dm44_cell_door.code_05D54B-= / code_05D552-= key checks.
|
|
10
|
+
; Depends on: !key_item_flags $0B58 (InventoryManagement); item IDs #0B, #0C.
|
|
11
|
+
; State: Reads $0B58 bits $0040 (key A) and $0080 (key B); flags $5B/$5C unchanged.
|
|
12
|
+
; Hazards/notes: COP interact context (X = actor slot); -= patches must stay in sync
|
|
13
|
+
; with vanilla branch targets code_05D552 / code_05D56D.
|
|
14
|
+
; ==============================================================================
|
|
15
|
+
|
|
16
|
+
!key_item_flags 0B58
|
|
17
|
+
|
|
18
|
+
-------------------------------------------
|
|
19
|
+
|
|
20
|
+
dm44_cell_door.code_05D54B-= {
|
|
21
|
+
LDA $key_item_flags
|
|
22
|
+
BIT #$0040
|
|
23
|
+
BNE code_05D552
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
dm44_cell_door.code_05D552-= {
|
|
27
|
+
LDA $key_item_flags
|
|
28
|
+
BIT #$0080
|
|
29
|
+
BNE code_05D56D
|
|
30
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
; ==============================================================================
|
|
2
|
+
; CrystalBallAutoUse - auto-place Crystal Balls in Sky Garden platform holes
|
|
3
|
+
; ==============================================================================
|
|
4
|
+
; What it does: Each spawned platform crystal (flags $60-$63) gets an interact
|
|
5
|
+
; handler; with item #0E, JML ItemUseStub to code_039020/02B/036/041 for that
|
|
6
|
+
; slot. Override at loc_03904A uses COP RemoveItem instead of RemoveEquippedItem.
|
|
7
|
+
; Vanilla behavior: sg4C_platforms code_05F522/560/58F/5CD play frame #36 and wait
|
|
8
|
+
; on flag only; UseItem_CrystalBall (scene $4C) sets flags via inventory tiles.
|
|
9
|
+
; Hooks (overrides): sg4C_platforms.code_05F522!/05F560!/05F58F!/05F5CD!; item_use_system.loc_03904A!.
|
|
10
|
+
; Adds: sg4C_slot1-4_interact/use, sg4C_interact_str.
|
|
11
|
+
; Depends on: $@ItemUseStub; item #0E; flag bytes $60-$63.
|
|
12
|
+
; State: Scene $4C; actor $10 bits $1000/$3000 during interact wait.
|
|
13
|
+
; Hazards/notes: Platform child actors spawned by parent sg4C_platformN; X for COP.
|
|
14
|
+
; ==============================================================================
|
|
15
|
+
|
|
16
|
+
-------------------------------------------
|
|
17
|
+
|
|
18
|
+
sg4C_platforms.code_05F522! {
|
|
19
|
+
COP [StageSpriteFrame] ( #36 )
|
|
20
|
+
COP [AnimOnce]
|
|
21
|
+
LDA #$1000
|
|
22
|
+
TSB $10
|
|
23
|
+
COP [SetInteractHandler] ( &sg4C_slot1_interact )
|
|
24
|
+
COP [WaitOnFlagByte] ( #60, #01 )
|
|
25
|
+
LDA #$3000
|
|
26
|
+
TRB $10
|
|
27
|
+
COP [SetEntryHere]
|
|
28
|
+
RTL
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
sg4C_slot1_interact {
|
|
32
|
+
COP [BranchIfHasItem] ( #0E, &sg4C_slot1_use )
|
|
33
|
+
COP [PrintDialogString] ( &sg4C_interact_str )
|
|
34
|
+
RTL
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
sg4C_slot1_use {
|
|
38
|
+
LDA #&code_039020
|
|
39
|
+
JML $@ItemUseStub
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
-----------------------------------------------
|
|
43
|
+
|
|
44
|
+
sg4C_platforms.code_05F560! {
|
|
45
|
+
COP [StageSpriteFrame] ( #36 )
|
|
46
|
+
COP [AnimOnce]
|
|
47
|
+
LDA #$1000
|
|
48
|
+
TSB $10
|
|
49
|
+
COP [SetInteractHandler] ( &sg4C_slot2_interact )
|
|
50
|
+
COP [WaitOnFlagByte] ( #61, #01 )
|
|
51
|
+
LDA #$3000
|
|
52
|
+
TRB $10
|
|
53
|
+
COP [SetEntryHere]
|
|
54
|
+
RTL
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
sg4C_slot2_interact {
|
|
58
|
+
COP [BranchIfHasItem] ( #0E, &sg4C_slot2_use )
|
|
59
|
+
COP [PrintDialogString] ( &sg4C_interact_str )
|
|
60
|
+
RTL
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
sg4C_slot2_use {
|
|
64
|
+
LDA #&code_03902B
|
|
65
|
+
JML $@ItemUseStub
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
-----------------------------------------------
|
|
69
|
+
|
|
70
|
+
sg4C_platforms.code_05F58F! {
|
|
71
|
+
COP [StageSpriteFrame] ( #36 )
|
|
72
|
+
COP [AnimOnce]
|
|
73
|
+
LDA #$1000
|
|
74
|
+
TSB $10
|
|
75
|
+
COP [SetInteractHandler] ( &sg4C_slot3_interact )
|
|
76
|
+
COP [WaitOnFlagByte] ( #62, #01 )
|
|
77
|
+
LDA #$3000
|
|
78
|
+
TRB $10
|
|
79
|
+
COP [SetEntryHere]
|
|
80
|
+
RTL
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
sg4C_slot3_interact {
|
|
84
|
+
COP [BranchIfHasItem] ( #0E, &sg4C_slot3_use )
|
|
85
|
+
COP [PrintDialogString] ( &sg4C_interact_str )
|
|
86
|
+
RTL
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
sg4C_slot3_use {
|
|
90
|
+
LDA #&code_039036
|
|
91
|
+
JML $@ItemUseStub
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
-----------------------------------------------
|
|
95
|
+
|
|
96
|
+
sg4C_platforms.code_05F5CD! {
|
|
97
|
+
COP [StageSpriteFrame] ( #36 )
|
|
98
|
+
COP [AnimOnce]
|
|
99
|
+
LDA #$1000
|
|
100
|
+
TSB $10
|
|
101
|
+
COP [SetInteractHandler] ( &sg4C_slot4_interact )
|
|
102
|
+
COP [WaitOnFlagByte] ( #63, #01 )
|
|
103
|
+
LDA #$3000
|
|
104
|
+
TRB $10
|
|
105
|
+
COP [SetEntryHere]
|
|
106
|
+
RTL
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
sg4C_slot4_interact {
|
|
110
|
+
COP [BranchIfHasItem] ( #0E, &sg4C_slot4_use )
|
|
111
|
+
COP [PrintDialogString] ( &sg4C_interact_str )
|
|
112
|
+
RTL
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
sg4C_slot4_use {
|
|
116
|
+
LDA #&code_039041
|
|
117
|
+
JML $@ItemUseStub
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
-----------------------------------------------
|
|
121
|
+
|
|
122
|
+
sg4C_interact_str `[DEF]There is an indentation[N]in this tile.[END]`
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
-----------------------------------------------
|
|
126
|
+
|
|
127
|
+
item_use_system.loc_03904A! {
|
|
128
|
+
COP [PrintDialogString] ( &dialogstring_039083 )
|
|
129
|
+
COP [RemoveItem] ( #0E )
|
|
130
|
+
RTS
|
|
131
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
; ==============================================================================
|
|
2
|
+
; DiamondBlockAutoUse - auto-place Diamond Block in Inca entryway slot
|
|
3
|
+
; ==============================================================================
|
|
4
|
+
; What it does: The floor slot actor becomes interactable; with item #07 or auto-use
|
|
5
|
+
; flag bit $0010, JML ItemUseStub to run UseItem_DiamondBlock_Place without menu.
|
|
6
|
+
; Vanilla behavior: ir25_block_slot code_09C3A2 only waits on flag $2F and plays SFX;
|
|
7
|
+
; no interact handler; placement is inventory-only on tiles ($0E-$0F, $19-$1A).
|
|
8
|
+
; Hooks (overrides): ir25_block_slot.code_09C3A2! and sub-label code_09C3B3!.
|
|
9
|
+
; Adds: ir25_block_slot_interact, ir25_block_slot_use, ir25_block_text.
|
|
10
|
+
; Depends on: !key_item_flags $0B58; $@ItemUseStub; UseItem_DiamondBlock_Place.
|
|
11
|
+
; State: Flag $2F; actor $10 bits $1000/$3000 for interact lockout.
|
|
12
|
+
; Hazards/notes: X = actor slot for COP; SetInteractHandler on slot actor.
|
|
13
|
+
; ==============================================================================
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
!key_item_flags 0B58
|
|
17
|
+
|
|
18
|
+
-------------------------------------------
|
|
19
|
+
|
|
20
|
+
ir25_block_slot.code_09C3A2! {
|
|
21
|
+
COP [NudgePosition] ( #08, #00 )
|
|
22
|
+
COP [BranchOnFlagByte] ( #2F, #01, &code_09C3B3 )
|
|
23
|
+
LDA #$1000
|
|
24
|
+
TSB $10
|
|
25
|
+
COP [SetInteractHandler] ( &ir25_block_slot_interact )
|
|
26
|
+
COP [WaitOnFlagByte] ( #2F, #01 )
|
|
27
|
+
COP [PlaySoundCh2] ( #2C )
|
|
28
|
+
|
|
29
|
+
ir25_block_slot.code_09C3B3!:
|
|
30
|
+
LDA #$3000
|
|
31
|
+
TRB $10
|
|
32
|
+
COP [SetEntryHere]
|
|
33
|
+
RTL
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
ir25_block_slot_interact {
|
|
37
|
+
LDA $key_item_flags
|
|
38
|
+
BIT #$0010
|
|
39
|
+
BNE ir25_block_slot_use
|
|
40
|
+
COP [BranchIfHasItem] ( #07, &ir25_block_slot_use )
|
|
41
|
+
COP [PrintDialogString] ( &ir25_block_text )
|
|
42
|
+
RTL
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
ir25_block_slot_use {
|
|
46
|
+
LDA #&UseItem_DiamondBlock_Place
|
|
47
|
+
JML $@ItemUseStub
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
ir25_block_text `[DEF]There is a strange slot in[N]the floor..[END]`
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
; ==============================================================================
|
|
2
|
+
; ElevatorKeyAutoUse - auto-use Elevator Key on the mine elevator door
|
|
3
|
+
; ==============================================================================
|
|
4
|
+
; What it does: Interacting with the elevator door uses the key immediately when
|
|
5
|
+
; the player carries item #0F or key_item_flags bit $0020 (prior auto-use), via
|
|
6
|
+
; the same path as vanilla success (code_05D66B) without requiring equip.
|
|
7
|
+
; Vanilla behavior: dm3F_elevator_door code_05D661 BranchIfItemEquipped (#0F) only;
|
|
8
|
+
; otherwise prints one-keyhole dialog; success removes item and sets flag $69.
|
|
9
|
+
; Hooks (overrides): dm3F_elevator_door.code_05D661!.
|
|
10
|
+
; Depends on: !key_item_flags $0B58; item #0F; falls through to vanilla code_05D66B.
|
|
11
|
+
; State: Flag $69; scene $3F (UseItem_ElevatorKey tile check is separate).
|
|
12
|
+
; Hazards/notes: COP interact handler; preserve RTL on failure path.
|
|
13
|
+
; ==============================================================================
|
|
14
|
+
|
|
15
|
+
!key_item_flags 0B58
|
|
16
|
+
|
|
17
|
+
-------------------------------------------
|
|
18
|
+
|
|
19
|
+
dm3F_elevator_door.code_05D661! {
|
|
20
|
+
LDA $key_item_flags
|
|
21
|
+
BIT #$0020
|
|
22
|
+
BNE code_05D66B
|
|
23
|
+
COP [BranchIfHasItem] ( #0F, &code_05D66B )
|
|
24
|
+
COP [PrintDialogString] ( &dialogstring_05D676 )
|
|
25
|
+
RTL
|
|
26
|
+
}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
; ==============================================================================
|
|
2
|
+
; GorgonFlowerAutoUse - auto-offer Gorgon Flower at the three stone girls
|
|
3
|
+
; ==============================================================================
|
|
4
|
+
; What it does: Each petrified girl gets interact + post-heal dialog; with item
|
|
5
|
+
; #1D or key_item_flags+2 bit $0080, ItemUseStub runs the per-statue placement
|
|
6
|
+
; handlers (code_0399F2 / A01 / A10). Empty dialog overrides suppress duplicate
|
|
7
|
+
; silent-statue lines; girl2/3 post-cutscene paths jump to shared neutral stub.
|
|
8
|
+
; Vanilla behavior: nvAE_stone_girl1-3 actors wait on flags $BF/$C0/$C1 with
|
|
9
|
+
; PrintDialogString-only interact; no inventory branch on the statues themselves.
|
|
10
|
+
; Hooks (overrides): nvAE_stone_girl1 code_0892A5!/0892DA!; girl2 code_089369!/08939E!/0893BA!
|
|
11
|
+
; and dialogstring_0893BF!/0893DE!/089415!; girl3 code_089474!/0894A9!/0894AE! and
|
|
12
|
+
; dialogstring_0894B3!/0894D2!/089509! (blank overrides).
|
|
13
|
+
; Adds: nvAE_stone_girl*_use/post_interact, nvAE_stone_girl1_neutral_stub.
|
|
14
|
+
; Depends on: !key_item_flags $0B58+2; $@ItemUseStub; item #1D; scene $AE flags.
|
|
15
|
+
; State: Flag bytes $BF, $C0, $C1; actor $12 bit $0200 for solid interact.
|
|
16
|
+
; Hazards/notes: Restores post-heal dialog on girl1; blank dialog overrides on girls 2/3;
|
|
17
|
+
; X = actor slot for COP.
|
|
18
|
+
; ==============================================================================
|
|
19
|
+
|
|
20
|
+
!key_item_flags 0B58
|
|
21
|
+
|
|
22
|
+
-----------------------------------------------
|
|
23
|
+
|
|
24
|
+
nvAE_stone_girl1.code_0892A5! {
|
|
25
|
+
COP [MarkSolidHere]
|
|
26
|
+
COP [BranchOnFlagByte] ( #BF, #01, &code_0892CE )
|
|
27
|
+
LDA #$0200
|
|
28
|
+
TSB $12
|
|
29
|
+
COP [SetInteractHandler] ( &code_0892DA )
|
|
30
|
+
COP [WaitOnFlagByte] ( #BF, #01 )
|
|
31
|
+
COP [SetInteractHandler] ( &nvAE_stone_girl1_post_interact )
|
|
32
|
+
COP [LoopStart] ( #1E )
|
|
33
|
+
COP [StageSpriteFrame] ( #36 )
|
|
34
|
+
COP [AnimOnce]
|
|
35
|
+
COP [StageSpriteFrame] ( #32 )
|
|
36
|
+
COP [AnimOnce]
|
|
37
|
+
COP [LoopEnd]
|
|
38
|
+
LDA #$0200
|
|
39
|
+
TRB $12
|
|
40
|
+
BRA code_0892CE+4
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
nvAE_stone_girl1.code_0892DA! {
|
|
44
|
+
LDA $key_item_flags+2
|
|
45
|
+
BIT #$0080
|
|
46
|
+
BNE nvAE_stone_girl1_use
|
|
47
|
+
COP [BranchIfHasItem] ( #1D, &nvAE_stone_girl1_use )
|
|
48
|
+
|
|
49
|
+
nvAE_stone_girl1_neutral_stub:
|
|
50
|
+
COP [PrintDialogString] ( &dialogstring_0892E4 )
|
|
51
|
+
RTL
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
nvAE_stone_girl1_use {
|
|
55
|
+
LDA #&code_0399F2
|
|
56
|
+
JML $@ItemUseStub
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
nvAE_stone_girl1_post_interact {
|
|
60
|
+
COP [PrintDialogString] ( &dialogstring_08931A )
|
|
61
|
+
RTL
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
-----------------------------------------------
|
|
65
|
+
|
|
66
|
+
nvAE_stone_girl2.code_089369! {
|
|
67
|
+
COP [MarkSolidHere]
|
|
68
|
+
COP [BranchOnFlagByte] ( #C0, #01, &code_089392 )
|
|
69
|
+
LDA #$0200
|
|
70
|
+
TSB $12
|
|
71
|
+
COP [SetInteractHandler] ( &code_08939E )
|
|
72
|
+
COP [WaitOnFlagByte] ( #C0, #01 )
|
|
73
|
+
COP [SetInteractHandler] ( &nvAE_stone_girl2_post_interact )
|
|
74
|
+
COP [LoopStart] ( #1E )
|
|
75
|
+
COP [StageSpriteFrame] ( #36 )
|
|
76
|
+
COP [AnimOnce]
|
|
77
|
+
COP [StageSpriteFrame] ( #32 )
|
|
78
|
+
COP [AnimOnce]
|
|
79
|
+
COP [LoopEnd]
|
|
80
|
+
LDA #$0200
|
|
81
|
+
TRB $12
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
nvAE_stone_girl2.code_08939E! {
|
|
85
|
+
LDA $key_item_flags+2
|
|
86
|
+
BIT #$0080
|
|
87
|
+
BNE nvAE_stone_girl2_use
|
|
88
|
+
COP [BranchIfHasItem] ( #1D, &nvAE_stone_girl2_use )
|
|
89
|
+
JML $@nvAE_stone_girl1_neutral_stub
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
nvAE_stone_girl2_use {
|
|
93
|
+
LDA #&code_039A01
|
|
94
|
+
JML $@ItemUseStub
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
nvAE_stone_girl2_post_interact {
|
|
98
|
+
JML $@nvAE_stone_girl1_post_interact
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
nvAE_stone_girl2.code_0893BA! {
|
|
102
|
+
JML $@code_0892DF
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
nvAE_stone_girl2.dialogstring_0893BF!:
|
|
106
|
+
nvAE_stone_girl2.dialogstring_0893DE!:
|
|
107
|
+
nvAE_stone_girl2.dialogstring_089415!:
|
|
108
|
+
|
|
109
|
+
-----------------------------------------------
|
|
110
|
+
|
|
111
|
+
nvAE_stone_girl3.code_089474! {
|
|
112
|
+
COP [MarkSolidHere]
|
|
113
|
+
COP [BranchOnFlagByte] ( #C1, #01, &code_08949D )
|
|
114
|
+
LDA #$0200
|
|
115
|
+
TSB $12
|
|
116
|
+
COP [SetInteractHandler] ( &code_0894A9 )
|
|
117
|
+
COP [WaitOnFlagByte] ( #C1, #01 )
|
|
118
|
+
COP [SetInteractHandler] ( &nvAE_stone_girl3_post_interact )
|
|
119
|
+
COP [LoopStart] ( #1E )
|
|
120
|
+
COP [StageSpriteFrame] ( #36 )
|
|
121
|
+
COP [AnimOnce]
|
|
122
|
+
COP [StageSpriteFrame] ( #32 )
|
|
123
|
+
COP [AnimOnce]
|
|
124
|
+
COP [LoopEnd]
|
|
125
|
+
LDA #$0200
|
|
126
|
+
TRB $12
|
|
127
|
+
BRA code_08949D+4
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
nvAE_stone_girl3.code_0894A9! {
|
|
131
|
+
LDA $key_item_flags+2
|
|
132
|
+
BIT #$0080
|
|
133
|
+
BNE nvAE_stone_girl3_use
|
|
134
|
+
COP [BranchIfHasItem] ( #1D, &nvAE_stone_girl3_use )
|
|
135
|
+
JML $@nvAE_stone_girl1_neutral_stub
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
nvAE_stone_girl3_use {
|
|
139
|
+
LDA #&code_039A10
|
|
140
|
+
JML $@ItemUseStub
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
nvAE_stone_girl3_post_interact {
|
|
144
|
+
JML $@nvAE_stone_girl1_post_interact
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
nvAE_stone_girl3.code_0894AE! {
|
|
148
|
+
JML $@code_0892DF
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
nvAE_stone_girl3.dialogstring_0894B3!:
|
|
152
|
+
nvAE_stone_girl3.dialogstring_0894D2!:
|
|
153
|
+
nvAE_stone_girl3.dialogstring_089509!:
|