@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,99 @@
|
|
|
1
|
+
; ==============================================================================
|
|
2
|
+
; HopeStatueAutoUse - auto-place Statue of Hope on Mu prayer-room pedestals
|
|
3
|
+
; ==============================================================================
|
|
4
|
+
; What it does: Spawns pedestal actors when the spirits cutscene tile branch runs;
|
|
5
|
+
; interact uses item #12 or key_item_flags+1 bits $0040/$0080 via ItemUseStub
|
|
6
|
+
; stubs that print pedestal dialog then call the vanilla placement JSR paths.
|
|
7
|
+
; Vanilla behavior: mu63_spirits code_0699CA runs a long spirit sequence, not these
|
|
8
|
+
; spawns; UseItem_StatueOfHope (scene $63) uses RemoveEquippedItem at code_0392B7/C8.
|
|
9
|
+
; Hooks (overrides): mu63_spirits.code_0699CA- (spawn targets); item_use_system
|
|
10
|
+
; code_0392B7! / code_0392C8! (COP RemoveItem); code_0392D9+ (dialog stubs).
|
|
11
|
+
; Adds: mu63_pedestal1/2 actors, hope_statue_dialog_stub1/2, mu63_interact_str.
|
|
12
|
+
; Depends on: !key_item_flags $0B58+1; flags $7B, $7E; item #12.
|
|
13
|
+
; State: Angel Village scene $63; flags $7B (pedestal 1), $7E (pedestal 2).
|
|
14
|
+
; Hazards/notes: Pedestal actors use COP WaitOnFlagByte then Die; X = actor slot.
|
|
15
|
+
; ==============================================================================
|
|
16
|
+
|
|
17
|
+
!key_item_flags 0B58
|
|
18
|
+
|
|
19
|
+
----------------------------------------------
|
|
20
|
+
|
|
21
|
+
mu63_pedestal1 {
|
|
22
|
+
COP [SetInteractHandler] ( &mu63_pedestal1_interact )
|
|
23
|
+
COP [WaitOnFlagByte] ( #7B, #01 )
|
|
24
|
+
COP [Die]
|
|
25
|
+
|
|
26
|
+
mu63_pedestal1_interact:
|
|
27
|
+
LDA $key_item_flags+1
|
|
28
|
+
BIT #$0040
|
|
29
|
+
BNE mu63_pedestal1_use
|
|
30
|
+
COP [BranchIfHasItem] ( #12, &mu63_pedestal1_use )
|
|
31
|
+
|
|
32
|
+
mu63_pedestal1_interact_stub:
|
|
33
|
+
COP [PrintDialogString] ( &mu63_interact_str )
|
|
34
|
+
RTL
|
|
35
|
+
|
|
36
|
+
mu63_pedestal1_use:
|
|
37
|
+
JML $@hope_statue_dialog_stub1
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
mu63_interact_str `[DEF]There is an altar here.[N]What could it be for...[END]`
|
|
41
|
+
|
|
42
|
+
----------------------------------------------
|
|
43
|
+
|
|
44
|
+
mu63_pedestal2 {
|
|
45
|
+
COP [SetInteractHandler] ( &mu63_pedestal2_interact )
|
|
46
|
+
COP [WaitOnFlagByte] ( #7E, #01 )
|
|
47
|
+
COP [Die]
|
|
48
|
+
|
|
49
|
+
mu63_pedestal2_interact:
|
|
50
|
+
LDA $key_item_flags+1
|
|
51
|
+
BIT #$0080
|
|
52
|
+
BNE mu63_pedestal2_use
|
|
53
|
+
COP [BranchIfHasItem] ( #12, &mu63_pedestal2_use )
|
|
54
|
+
JMP $&mu63_pedestal1_interact_stub
|
|
55
|
+
|
|
56
|
+
mu63_pedestal2_use:
|
|
57
|
+
JML #@hope_statue_dialog_stub2
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
--------------------------------------------------
|
|
61
|
+
|
|
62
|
+
mu63_spirits.code_0699CA- {
|
|
63
|
+
COP [SpawnAfterAbsFlags] ( @mu63_pedestal1, #$0078, #$0070, #$7000 )
|
|
64
|
+
COP [SpawnAfterAbsFlags] ( @mu63_pedestal2, #$0178, #$0070, #$7000 )
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
--------------------------------------------------
|
|
68
|
+
|
|
69
|
+
item_use_system.code_0392B7! {
|
|
70
|
+
COP [BranchOnFlagByte] ( #7E, #01, &code_0392D9 )
|
|
71
|
+
COP [RemoveItem] ( #12 )
|
|
72
|
+
COP [PrintDialogString] ( &dialogstring_03930B )
|
|
73
|
+
COP [SetFlagByte] ( #7E )
|
|
74
|
+
RTS
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
--------------------------------------------------
|
|
78
|
+
|
|
79
|
+
item_use_system.code_0392C8! {
|
|
80
|
+
COP [BranchOnFlagByte] ( #7B, #01, &code_0392D9 )
|
|
81
|
+
COP [RemoveItem] ( #12 )
|
|
82
|
+
COP [PrintDialogString] ( &dialogstring_03930B )
|
|
83
|
+
COP [SetFlagByte] ( #7B )
|
|
84
|
+
RTS
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
--------------------------------------------------
|
|
88
|
+
|
|
89
|
+
item_use_system.code_0392D9+ {
|
|
90
|
+
hope_statue_dialog_stub1:
|
|
91
|
+
COP [PrintDialogString] ( &dialogstring_0392DE )
|
|
92
|
+
JSR code_0392C8
|
|
93
|
+
RTL
|
|
94
|
+
|
|
95
|
+
hope_statue_dialog_stub2:
|
|
96
|
+
COP [PrintDialogString] ( &dialogstring_0392DE )
|
|
97
|
+
JSR code_0392B7
|
|
98
|
+
RTL
|
|
99
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
; ==============================================================================
|
|
2
|
+
; IncanStatueAutoUse - auto-place Inca statues on Larai cliff mantels
|
|
3
|
+
; ==============================================================================
|
|
4
|
+
; What it does: Mantel actors A/B gain interact handlers; with statues #03/#04 or
|
|
5
|
+
; key_item_flags bits $0004/$0008, calls ItemUseStub to the matching UseItem_Inca
|
|
6
|
+
; handler entry (loc_0386B3 / loc_0387C9) instead of opening the item menu.
|
|
7
|
+
; Vanilla behavior: ir1E_cliff_mantel_a/b wait on flags $30/$31, no interact;
|
|
8
|
+
; placement only via inventory tile checks in item_use_system.
|
|
9
|
+
; Hooks (overrides): ir1E_cliff_mantel_a.code_09C550!; ir1E_cliff_mantel_b.code_09C566!.
|
|
10
|
+
; Adds: isau_interact_a/b, isau_use_a/b, isau_interact_str_a; B reuses A stub dialog.
|
|
11
|
+
; Depends on: !key_item_flags $0B58; $@ItemUseStub; items #03, #04.
|
|
12
|
+
; State: Flags $30, $31; actor $10 bit $2000 cleared after placement wait.
|
|
13
|
+
; Hazards/notes: X = actor slot for COP; SetSpritePriority #30 on mantels.
|
|
14
|
+
; ==============================================================================
|
|
15
|
+
|
|
16
|
+
!key_item_flags 0B58
|
|
17
|
+
|
|
18
|
+
------------------------------------------------
|
|
19
|
+
|
|
20
|
+
ir1E_cliff_mantel_a.code_09C550! {
|
|
21
|
+
COP [NudgePosition] ( #08, #FE )
|
|
22
|
+
COP [SetSpritePriority] ( #30 )
|
|
23
|
+
COP [SetInteractHandler] ( &isau_interact_a )
|
|
24
|
+
COP [WaitOnFlagByte] ( #30, #01 )
|
|
25
|
+
COP [SetInteractHandler] ( #$0000 )
|
|
26
|
+
LDA #$2000
|
|
27
|
+
TRB $10
|
|
28
|
+
COP [SetEntryHere]
|
|
29
|
+
RTL
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
isau_interact_a {
|
|
33
|
+
LDA $key_item_flags
|
|
34
|
+
BIT #$0004
|
|
35
|
+
BNE isau_use_a
|
|
36
|
+
COP [BranchIfHasItem] ( #03, &isau_use_a )
|
|
37
|
+
|
|
38
|
+
isau_interact_a_stub:
|
|
39
|
+
COP [PrintDialogString] ( &isau_interact_str_a )
|
|
40
|
+
RTL
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
isau_use_a {
|
|
44
|
+
LDA #&loc_0386B3
|
|
45
|
+
JML $@ItemUseStub
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
isau_interact_str_a `[DEF]There is a strange[N]mantel here. It's as if[N]something were missing...[END]`
|
|
49
|
+
|
|
50
|
+
------------------------------------------------
|
|
51
|
+
|
|
52
|
+
ir1E_cliff_mantel_b.code_09C566! {
|
|
53
|
+
COP [NudgePosition] ( #08, #FE )
|
|
54
|
+
COP [SetSpritePriority] ( #30 )
|
|
55
|
+
COP [SetInteractHandler] ( &isau_interact_b )
|
|
56
|
+
COP [WaitOnFlagByte] ( #31, #01 )
|
|
57
|
+
COP [SetInteractHandler] ( #$0000 )
|
|
58
|
+
LDA #$2000
|
|
59
|
+
TRB $10
|
|
60
|
+
COP [SetEntryHere]
|
|
61
|
+
RTL
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
isau_interact_b {
|
|
65
|
+
LDA $key_item_flags
|
|
66
|
+
BIT #$0008
|
|
67
|
+
BNE isau_use_b
|
|
68
|
+
COP [BranchIfHasItem] ( #04, &isau_use_b )
|
|
69
|
+
JML $@isau_interact_a_stub
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
isau_use_b {
|
|
73
|
+
LDA #&loc_0387C9
|
|
74
|
+
JML $@ItemUseStub
|
|
75
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
; ==============================================================================
|
|
2
|
+
; ItemUseStub - RTS-trick entry to run an item handler and return to caller
|
|
3
|
+
; ==============================================================================
|
|
4
|
+
; What it does: Jumps here with the handler address in A; runs that code as if
|
|
5
|
+
; called via JSR, then RTL back to the interact script that invoked it.
|
|
6
|
+
; Vanilla behavior: N/A (new helper, not an override).
|
|
7
|
+
; Hooks (overrides): none.
|
|
8
|
+
; Adds: ItemUseStub (A = &item_use handler), ItemUseStubEpilogue (RTL target).
|
|
9
|
+
; Depends on: bank 03; callers use JML $@ItemUseStub after LDA #&handler.
|
|
10
|
+
; State: none.
|
|
11
|
+
; Hazards/notes: Pushes ItemUseStubEpilogue-1 as synthetic return; handler must RTS.
|
|
12
|
+
; ==============================================================================
|
|
13
|
+
?BANK 03
|
|
14
|
+
|
|
15
|
+
ItemUseStub {
|
|
16
|
+
PEA #&ItemUseStubEpilogue-1
|
|
17
|
+
DEC
|
|
18
|
+
PHA
|
|
19
|
+
RTS
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
ItemUseStubEpilogue {
|
|
23
|
+
RTL
|
|
24
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
; ==============================================================================
|
|
2
|
+
; MagicPowerAutoUse - auto-use Magic Powder on Kara (Angel Village tunnels)
|
|
3
|
+
; ==============================================================================
|
|
4
|
+
; What it does: During the Kara rescue (scene $74), if the player already used
|
|
5
|
+
; Magic Powder via auto-use, skips re-checking inventory at the painting spawn
|
|
6
|
+
; and at Kara's interact handler; routes use through ItemUseStub like manual use.
|
|
7
|
+
; Vanilla behavior: av74_kara code_06D151 waits on BranchIfHasItem (#14) before
|
|
8
|
+
; solidifying the painting; code_06D25A prints Will's dust dialog unless flag
|
|
9
|
+
; $01 is set via item_use_system code_0393BA (UseItem_MagicPowder on tiles).
|
|
10
|
+
; Hooks (overrides): av74_kara.code_06D151! / code_06D25A!; item_use_system.code_0393BA+
|
|
11
|
+
; (av74_kara_use_stub dialog then JSR powder placement).
|
|
12
|
+
; Adds: av74_kara_use_powder, av74_kara_use_stub.
|
|
13
|
+
; Depends on: !key_item_flags $0B58+2 bit $0004; $@ItemUseStub; item #14.
|
|
14
|
+
; State: Flags $8C, $01, $89, $8A; scene $74 tile check in UseItem_MagicPowder.
|
|
15
|
+
; Hazards/notes: X = actor slot for COP in av74_kara handlers; painting actor $12 bits.
|
|
16
|
+
; ==============================================================================
|
|
17
|
+
|
|
18
|
+
!key_item_flags 0B58
|
|
19
|
+
|
|
20
|
+
------------------------------------------------
|
|
21
|
+
|
|
22
|
+
av74_kara.code_06D151! {
|
|
23
|
+
COP [BranchOnFlagByte] ( #8C, #01, &code_06D258 )
|
|
24
|
+
COP [NudgePosition] ( #08, #FD )
|
|
25
|
+
COP [SetSpritePriority] ( #10 )
|
|
26
|
+
COP [SpawnAfterOffsetFlags] ( @code_06D251, #$0000, #$0010, #$3000 )
|
|
27
|
+
COP [SetEntryHere]
|
|
28
|
+
COP [BranchIfHasItem] ( #14, &code_06D171 )
|
|
29
|
+
LDA $key_item_flags+2
|
|
30
|
+
BIT #$0004
|
|
31
|
+
BNE code_06D171
|
|
32
|
+
RTL
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
av74_kara.code_06D25A! {
|
|
36
|
+
COP [BranchOnFlagByte] ( #01, #01, &code_06D26B )
|
|
37
|
+
LDA $key_item_flags+2
|
|
38
|
+
BIT #$0004
|
|
39
|
+
BNE av74_kara_use_powder
|
|
40
|
+
COP [BranchIfHasItem] ( #14, &av74_kara_use_powder )
|
|
41
|
+
COP [BranchOnFlagByte] ( #89, #00, &code_06D273 )
|
|
42
|
+
COP [PrintDialogString] ( &dialogstring_06D278 )
|
|
43
|
+
RTL
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
av74_kara_use_powder {
|
|
47
|
+
JML $@av74_kara_use_stub
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
item_use_system.code_0393BA+ {
|
|
51
|
+
av74_kara_use_stub:
|
|
52
|
+
COP [PrintDialogString] ( &dialogstring_0393C5 )
|
|
53
|
+
JSR $&code_0393BA
|
|
54
|
+
RTL
|
|
55
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
; ==============================================================================
|
|
2
|
+
; MeatAutoUse - auto-feed Smoked Meat during the raft starvation cutscene
|
|
3
|
+
; ==============================================================================
|
|
4
|
+
; What it does: When the adrift sequence sets hunger flag $02 via code_05976D,
|
|
5
|
+
; immediately runs UseItem_SmokedMeat if the player has item #0A or the auto-use
|
|
6
|
+
; bit in key_item_flags, instead of only setting flag $02 and stopping.
|
|
7
|
+
; Vanilla behavior: dc2F_adrift code_05976D prints dialogstring_059E6F and sets
|
|
8
|
+
; flag byte $02; the player must open inventory and use Smoked Meat separately.
|
|
9
|
+
; Hooks (overrides): dc2F_adrift.code_05976D!.
|
|
10
|
+
; Adds: meat_auto_use -> JML $@ItemUseStub.
|
|
11
|
+
; Depends on: !key_item_flags $0B58 bit $0002; item #0A; UseItem_SmokedMeat (bank 03).
|
|
12
|
+
; State: Flag $02 (hungry villagers), $03 set by UseItem_SmokedMeat; scene $2F.
|
|
13
|
+
; Hazards/notes: Reached when flag $01 already set (branch from code_059749); COP context.
|
|
14
|
+
; ==============================================================================
|
|
15
|
+
|
|
16
|
+
!key_item_flags 0B58
|
|
17
|
+
|
|
18
|
+
----------------------------------------------
|
|
19
|
+
|
|
20
|
+
dc2F_adrift.code_05976D! {
|
|
21
|
+
COP [PrintDialogString] ( &dialogstring_059E6F )
|
|
22
|
+
COP [SetFlagByte] ( #02 )
|
|
23
|
+
LDA $key_item_flags
|
|
24
|
+
BIT #$0002
|
|
25
|
+
BNE meat_auto_use
|
|
26
|
+
COP [BranchIfHasItem] ( #0A, &meat_auto_use )
|
|
27
|
+
RTL
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
meat_auto_use {
|
|
31
|
+
LDA #$UseItem_SmokedMeat+E
|
|
32
|
+
JML $@ItemUseStub
|
|
33
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
; ==============================================================================
|
|
2
|
+
; Mushroom Drop auto-use (Mountain Temple) - interact at vines, use water via stub
|
|
3
|
+
; ==============================================================================
|
|
4
|
+
; What it does: Before each mushroom-drop gate opens, spawns a vine interact
|
|
5
|
+
; actor. With Mushroom Drop (#1A) owned, interact jumps to ItemUseStub at the
|
|
6
|
+
; vanilla use-site handler for that gate; otherwise shows a hint string (gate
|
|
7
|
+
; 3 skips dialog and RTL).
|
|
8
|
+
; Vanilla behavior: Gate actors (mtA2/A5) wait on flag byte #01 then consume
|
|
9
|
+
; item #1A in-place with BG changes and set flag words #$0159 / #$015F / #$0167.
|
|
10
|
+
; Hooks (overrides): mtA2_mushroom_drop_gate.code_07E7F3-, mtA5_mushroom_drop_gate_a
|
|
11
|
+
; .code_07E846-, mtA5_mushroom_drop_gate_b.code_07E899- prepend SpawnAfterAbsFlags
|
|
12
|
+
; for mt_mushroom_activator1/2/3 at vine coordinates.
|
|
13
|
+
; Adds: mt_mushroom_activator1/2/3 (+ _interact/_use); A=long addr of code_0398D2/
|
|
14
|
+
; code_0398EC/code_0398F4 then JML ItemUseStub (same sites as UseItem_MushroomWater).
|
|
15
|
+
; Depends on: ItemUseStub; flag words #$0159, #$015F, #$0167 gate completion.
|
|
16
|
+
; State: SpawnAfterAbsFlags abs positions per override; activators WaitOnFlagWord
|
|
17
|
+
; matching each gate; item #1A (Mushroom Drop).
|
|
18
|
+
; Hazards/notes: COP interact handlers need X=actor slot; SetInteractHandler paths
|
|
19
|
+
; preserve engine COP conventions.
|
|
20
|
+
; ==============================================================================
|
|
21
|
+
|
|
22
|
+
mt_mushroom_activator1 {
|
|
23
|
+
COP [SetInteractHandler] ( &mt_mushroom_activator1_interact )
|
|
24
|
+
COP [WaitOnFlagWord] ( #$0159, #01 )
|
|
25
|
+
COP [Die]
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
mt_mushroom_activator1_interact {
|
|
29
|
+
COP [BranchIfHasItem] ( #1A, &mt_mushroom_activator1_use )
|
|
30
|
+
COP [PrintDialogString] ( &mt_mushroom_interact_str )
|
|
31
|
+
RTL
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
mt_mushroom_activator1_use {
|
|
35
|
+
LDA #$code_0398D2
|
|
36
|
+
JML $@ItemUseStub
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
-------------------------------------------
|
|
40
|
+
|
|
41
|
+
mt_mushroom_activator2 {
|
|
42
|
+
COP [SetInteractHandler] ( &mt_mushroom_activator2_interact )
|
|
43
|
+
COP [WaitOnFlagWord] ( #$015F, #01 )
|
|
44
|
+
COP [Die]
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
mt_mushroom_activator2_interact {
|
|
48
|
+
COP [BranchIfHasItem] ( #1A, &mt_mushroom_activator2_use )
|
|
49
|
+
COP [PrintDialogString] ( &mt_mushroom_interact_str )
|
|
50
|
+
RTL
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
mt_mushroom_activator2_use {
|
|
54
|
+
LDA #$code_0398EC
|
|
55
|
+
JML $@ItemUseStub
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
-------------------------------------------
|
|
59
|
+
|
|
60
|
+
mt_mushroom_activator3 {
|
|
61
|
+
COP [SetInteractHandler] ( &mt_mushroom_activator3_interact )
|
|
62
|
+
COP [WaitOnFlagWord] ( #$0167, #01 )
|
|
63
|
+
COP [Die]
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
mt_mushroom_activator3_interact {
|
|
67
|
+
COP [BranchIfHasItem] ( #1A, &mt_mushroom_activator3_use )
|
|
68
|
+
;COP [PrintDialogString] ( &mt_mushroom_interact_str )
|
|
69
|
+
RTL
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
mt_mushroom_activator3_use {
|
|
73
|
+
LDA #$code_0398F4
|
|
74
|
+
JML $@ItemUseStub
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
-------------------------------------------
|
|
78
|
+
|
|
79
|
+
mt_mushroom_interact_str `[DEF]These vines look rather[N]peculiar...[END]`
|
|
80
|
+
|
|
81
|
+
---------------------------------------------
|
|
82
|
+
;mtA2_mushroom_drop_gate
|
|
83
|
+
|
|
84
|
+
mtA2_mushroom_drop_gate.code_07E7F3- {
|
|
85
|
+
COP [SpawnAfterAbsFlags] ( @mt_mushroom_activator1, #$0148, #$0088, #$7000 )
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
---------------------------------------------
|
|
89
|
+
;mtA5_mushroom_drop_gate_a
|
|
90
|
+
|
|
91
|
+
mtA5_mushroom_drop_gate_a.code_07E846- {
|
|
92
|
+
COP [SpawnAfterAbsFlags] ( @mt_mushroom_activator2, #$02E8, #$0128, #$7000 )
|
|
93
|
+
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
---------------------------------------------
|
|
97
|
+
;mtA5_mushroom_drop_gate_b
|
|
98
|
+
mtA5_mushroom_drop_gate_b.code_07E899- {
|
|
99
|
+
COP [SpawnAfterAbsFlags] ( @mt_mushroom_activator3, #$0298, #$0248, #$7000 )
|
|
100
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
; ==============================================================================
|
|
2
|
+
; Seaside Palace Key auto-use (scene $5A) - door actor + scene spawn
|
|
3
|
+
; ==============================================================================
|
|
4
|
+
; What it does: Adds a palace door interact actor in scene $5A. With Palace Key
|
|
5
|
+
; (#10) or key_item_flags+1 bit $20 set, interact runs ItemUseStub at
|
|
6
|
+
; code_03915D (vanilla keyhole use); else shows flavor dialog.
|
|
7
|
+
; Vanilla behavior: Palace Key use only from inventory at tiles ($08,$07)-($0A,$08)
|
|
8
|
+
; in scene $5A via UseItem_PalaceKey; no standalone door actor in scene table.
|
|
9
|
+
; Hooks (overrides): scene_actors.scene_5A_actors+= appends sp5A_door spawn.
|
|
10
|
+
; Adds: sp5A_door actor-def (flag word #$0138, WaitOnFlagWord); A=#&code_03915D
|
|
11
|
+
; then JML ItemUseStub on use path.
|
|
12
|
+
; Depends on: !key_item_flags $0B58 (collectible-system); ItemUseStub;
|
|
13
|
+
; item_use_system code_03915D handler.
|
|
14
|
+
; State: Flag word #$0138 door opened; key_item_flags+1 $0020 Palace Key bit;
|
|
15
|
+
; item #10; scene $5A spawn at (#2F,#19) slot #3B.
|
|
16
|
+
; Hazards/notes: COP interact path; BranchIfHasItem / flag bit mirror auto-use
|
|
17
|
+
; pattern from key_item_core.
|
|
18
|
+
; ==============================================================================
|
|
19
|
+
|
|
20
|
+
!key_item_flags 0B58
|
|
21
|
+
|
|
22
|
+
------------------------------------------------
|
|
23
|
+
|
|
24
|
+
sp5A_door [
|
|
25
|
+
actor-def < #00, #00, #30, {
|
|
26
|
+
COP [BranchOnFlagWord] ( #0138, #01, &sp5A_door_die )
|
|
27
|
+
COP [NudgePosition] ( #08, #08 )
|
|
28
|
+
COP [SetInteractHandler] ( &sp5A_door_interact )
|
|
29
|
+
COP [WaitOnFlagWord] ( #0138, #01 )
|
|
30
|
+
|
|
31
|
+
sp5A_door_die:
|
|
32
|
+
COP [Die]
|
|
33
|
+
|
|
34
|
+
sp5A_door_interact:
|
|
35
|
+
LDA $key_item_flags+1
|
|
36
|
+
BIT #$0020
|
|
37
|
+
BNE sp5A_door_use
|
|
38
|
+
COP [BranchIfHasItem] ( #10, &sp5A_door_use )
|
|
39
|
+
COP [PrintDialogString] ( &sp5A_door_interact_str )
|
|
40
|
+
RTL
|
|
41
|
+
|
|
42
|
+
sp5A_door_use:
|
|
43
|
+
LDA #&code_03915D
|
|
44
|
+
JML $@ItemUseStub
|
|
45
|
+
} >
|
|
46
|
+
]
|
|
47
|
+
|
|
48
|
+
sp5A_door_interact_str `[DEF]What a strange door...[END]`
|
|
49
|
+
|
|
50
|
+
scene_actors.scene_5A_actors+= [
|
|
51
|
+
actor-spawn < #2F, #19, #3B, @sp5A_door >
|
|
52
|
+
]
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
; ==============================================================================
|
|
2
|
+
; Prison Key auto-use (Edward Castle prison) - side door + main door interact
|
|
3
|
+
; ==============================================================================
|
|
4
|
+
; What it does: Side door actor auto-uses Prison Key via ItemUseStub at
|
|
5
|
+
; code_0385FF. Main ec0B_door actor spawns the side door, keeps Will's locked
|
|
6
|
+
; dialog on flag byte #02, and adds keyhole interact that stubs to code_0385DC
|
|
7
|
+
; when key_item_flags bit $01 or item #02 is owned.
|
|
8
|
+
; Vanilla behavior: ec0B_door code_04DB15 sets script lock $0200 on $12, handler
|
|
9
|
+
; code_04DB24 prints locked dialog and sets flag #02 then dies; Prison Key use
|
|
10
|
+
; only from inventory at tile regions for doors A/B.
|
|
11
|
+
; Hooks (overrides): ec0B_door.code_04DB15! replaces entry with side-door spawn
|
|
12
|
+
; and extended door logic; ec0B_door.code_04DB24! RTL after dialog (no Die).
|
|
13
|
+
; Adds: ec0B_side_door, ec0B_door_interact_key / _use_key; JML ItemUseStub with
|
|
14
|
+
; #&code_0385FF (side) or #&code_0385DC (main keyhole).
|
|
15
|
+
; Depends on: !key_item_flags $0B58; ItemUseStub; flag bytes #02, #24, #42.
|
|
16
|
+
; State: Player Y band $E8-$F9 on main door for keyhole handler; flag #24 main
|
|
17
|
+
; door open; flag #42 side door; item #02 Prison Key.
|
|
18
|
+
; Hazards/notes: code_04DB24 override must RTL (actor stays alive for WaitOnFlag);
|
|
19
|
+
; COP SetInteractHandler on main door uses mixed flag bytes vs vanilla.
|
|
20
|
+
; ==============================================================================
|
|
21
|
+
|
|
22
|
+
!key_item_flags 0B58
|
|
23
|
+
|
|
24
|
+
------------------------------------------------
|
|
25
|
+
|
|
26
|
+
ec0B_side_door {
|
|
27
|
+
COP [BranchOnFlagByte] ( #42, #01, &ec0B_side_door_die )
|
|
28
|
+
COP [SetInteractHandler] ( &ec0B_side_door_interact )
|
|
29
|
+
COP [WaitOnFlagByte] ( #42, #01 )
|
|
30
|
+
|
|
31
|
+
ec0B_side_door_die:
|
|
32
|
+
COP [Die]
|
|
33
|
+
|
|
34
|
+
ec0B_side_door_interact:
|
|
35
|
+
LDA #&code_0385FF
|
|
36
|
+
JML $@ItemUseStub
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
----------------------------------------------
|
|
40
|
+
|
|
41
|
+
ec0B_door.code_04DB15!:
|
|
42
|
+
COP [SpawnAfterAbsFlags] ( @ec0B_side_door, #$0090, #$0180, #$7000 )
|
|
43
|
+
COP [BranchOnFlagByte] ( #24, #01, &ec0B_door_die )
|
|
44
|
+
LDA #$0200
|
|
45
|
+
TSB $12
|
|
46
|
+
COP [SetInteractHandler] ( &code_04DB24 )
|
|
47
|
+
COP [WaitOnFlagByte] ( #02, #01 )
|
|
48
|
+
|
|
49
|
+
LDA $14
|
|
50
|
+
CMP #$00F9
|
|
51
|
+
BCS ec0B_door_die
|
|
52
|
+
CMP #$00E8
|
|
53
|
+
BCC ec0B_door_die
|
|
54
|
+
|
|
55
|
+
COP [SetInteractHandler] ( &ec0B_door_interact_key )
|
|
56
|
+
COP [WaitOnFlagByte] ( #24, #01 )
|
|
57
|
+
|
|
58
|
+
ec0B_door_die:
|
|
59
|
+
COP [Die]
|
|
60
|
+
|
|
61
|
+
ec0B_door.code_04DB24! {
|
|
62
|
+
COP [PrintDialogString] ( &dialogstring_04DB2D )
|
|
63
|
+
COP [SetFlagByte] ( #02 )
|
|
64
|
+
RTL
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
ec0B_door_interact_key {
|
|
68
|
+
LDA $key_item_flags
|
|
69
|
+
BIT #$0001
|
|
70
|
+
BNE ec0B_door_use_key
|
|
71
|
+
COP [BranchIfHasItem] ( #02, &ec0B_door_use_key )
|
|
72
|
+
;COP [PrintDialogString] ( &dialogstring_04DB2D )
|
|
73
|
+
RTL
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
ec0B_door_use_key {
|
|
77
|
+
LDA #&code_0385DC
|
|
78
|
+
JML $@ItemUseStub
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
;scene_0B_actors+ [
|
|
82
|
+
; actor-spawn < #09, #18, #00, @ec0B_side_door > ;09
|
|
83
|
+
;]
|
|
84
|
+
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
; ==============================================================================
|
|
2
|
+
; Purification Stone auto-use (Seaside Palace fountain) - sp5D_fountain hook
|
|
3
|
+
; ==============================================================================
|
|
4
|
+
; What it does: When fountain puzzle flags allow and player lacks item #11 but
|
|
5
|
+
; has Purify Stone via inventory or key_item_flags+1 bit $10, spawns
|
|
6
|
+
; sp5D_fountain_activator; interact jumps to ItemUseStub at code_039230.
|
|
7
|
+
; Vanilla behavior: sp5D_fountain code_0693FB requires BranchIfHasItem #11 to
|
|
8
|
+
; enter code_069412 cutscene path; otherwise jumps to code_0694A8 (Die).
|
|
9
|
+
; Hooks (overrides): sp5D_fountain.code_0693FB! inserts activator spawn branch
|
|
10
|
+
; before vanilla item check / fallthrough.
|
|
11
|
+
; Adds: sp5D_fountain_activator (+ _interact); JML ItemUseStub with #&code_039230.
|
|
12
|
+
; Depends on: !key_item_flags $0B58; ItemUseStub; flag bytes #6F, #70 fountain
|
|
13
|
+
; state; item #11 (Purification Stone).
|
|
14
|
+
; State: STZ $066D preserved from vanilla entry; activator at abs #$00F8,$0148;
|
|
15
|
+
; WaitOnFlagByte #70.
|
|
16
|
+
; Hazards/notes: BRA code_069412 re-enters vanilla cutscene when stub path taken;
|
|
17
|
+
; COP spawn/interact needs actor slot in X.
|
|
18
|
+
; ==============================================================================
|
|
19
|
+
|
|
20
|
+
!key_item_flags 0B58
|
|
21
|
+
|
|
22
|
+
----------------------------------------------
|
|
23
|
+
|
|
24
|
+
sp5D_fountain_activator {
|
|
25
|
+
COP [SetInteractHandler] ( &sp5D_fountain_activator_interact )
|
|
26
|
+
COP [WaitOnFlagByte] ( #70, #01 )
|
|
27
|
+
COP [Die]
|
|
28
|
+
|
|
29
|
+
sp5D_fountain_activator_interact:
|
|
30
|
+
LDA #&code_039230
|
|
31
|
+
JML $@ItemUseStub
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
;sp5D_fountain
|
|
35
|
+
|
|
36
|
+
sp5D_fountain.code_0693FB! {
|
|
37
|
+
STZ $066D
|
|
38
|
+
COP [BranchOnFlagByte] ( #70, #01, &code_0694A8 )
|
|
39
|
+
COP [BranchOnFlagByte] ( #6F, #00, &code_0694A8 )
|
|
40
|
+
COP [BranchIfHasItem] ( #11, &sp5D_fountain_stub )
|
|
41
|
+
LDA $key_item_flags+1
|
|
42
|
+
BIT #$0010
|
|
43
|
+
BNE sp5D_fountain_stub
|
|
44
|
+
JMP $&code_0694A8
|
|
45
|
+
|
|
46
|
+
sp5D_fountain_stub:
|
|
47
|
+
COP [SpawnAfterAbsFlags] ( @sp5D_fountain_activator, #$00F8, #$0148, #$7000 )
|
|
48
|
+
BRA code_069412
|
|
49
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
; ==============================================================================
|
|
2
|
+
; Rama Statue auto-use (Mu scene $66 altars) - interact + item-use stubs
|
|
3
|
+
; ==============================================================================
|
|
4
|
+
; What it does: Spawns altar interact activators at both pedestals. Altar 1
|
|
5
|
+
; interact always runs use stub (dialog + item handler); altar 2 requires item
|
|
6
|
+
; #13 or shows empty-shrine text. Stubs call patched code_039349/35A then RTL.
|
|
7
|
+
; Vanilla behavior: mu66 altar actors nudge/wait on flags #80/#81 with cutscene
|
|
8
|
+
; logic; UseItem_RamaStatue from inventory checks scene $66 and tile regions,
|
|
9
|
+
; RemoveEquippedItem via JSR, sets flags #80/#81.
|
|
10
|
+
; Hooks (overrides): mu66_altar1.code_069C2D-, mu66_altar2.code_069C70- prepend
|
|
11
|
+
; SpawnAfterOffsetFlags for activators; item_use_system.code_039349!,
|
|
12
|
+
; code_03935A! use COP RemoveItem; code_03936B+ adds mu66_altar*_use_stub.
|
|
13
|
+
; Adds: mu66_altar1/2_activator, *_interact, *_use_stub; JML to stubs from
|
|
14
|
+
; altar2_use; JSR code_039349/35A from stubs after raise dialog.
|
|
15
|
+
; Depends on: ItemUseStub not used on altars (direct JML/JSR to item handlers);
|
|
16
|
+
; dialogstring_039370/03939F from item_use_system; flags #80, #81.
|
|
17
|
+
; State: Item #13 Rama Statue; scene $66 altar room; SpawnAfterOffsetFlags
|
|
18
|
+
; offset #$0008 on altar actors.
|
|
19
|
+
; Hazards/notes: Altar1 interact skips BranchIfHasItem (always attempts use);
|
|
20
|
+
; COP RemoveItem in overrides vs vanilla JSR RemoveEquippedItem; X=actor for COP.
|
|
21
|
+
; ==============================================================================
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
mu66_altar1_activator {
|
|
26
|
+
COP [SetInteractHandler] ( &mu66_altar1_interact )
|
|
27
|
+
COP [WaitOnFlagByte] ( #80, #01 )
|
|
28
|
+
COP [Die]
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
mu66_altar1_interact {
|
|
32
|
+
JML $@mu66_altar1_use_stub
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
mu66_altar_interact_str `[DEF]Looks like an empty[N]shrine...[END]`
|
|
36
|
+
|
|
37
|
+
-----------------------------------------
|
|
38
|
+
|
|
39
|
+
mu66_altar2_activator {
|
|
40
|
+
COP [SetInteractHandler] ( &mu66_altar2_interact )
|
|
41
|
+
COP [WaitOnFlagByte] ( #81, #01 )
|
|
42
|
+
COP [Die]
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
mu66_altar2_interact {
|
|
46
|
+
COP [BranchIfHasItem] ( #13, &mu66_altar2_use )
|
|
47
|
+
COP [PrintDialogString] ( &mu66_altar_interact_str )
|
|
48
|
+
RTL
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
mu66_altar2_use {
|
|
52
|
+
JML $@mu66_altar2_use_stub
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
-----------------------------------------
|
|
57
|
+
|
|
58
|
+
mu66_altar1.code_069C2D- {
|
|
59
|
+
COP [SpawnAfterOffsetFlags] ( @mu66_altar1_activator, #$0000, #$0008, #$7000 )
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
-----------------------------------------
|
|
63
|
+
|
|
64
|
+
mu66_altar2.code_069C70- {
|
|
65
|
+
COP [SpawnAfterOffsetFlags] ( @mu66_altar2_activator, #$0000, #$0008, #$7000 )
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
-----------------------------------------
|
|
69
|
+
|
|
70
|
+
item_use_system.code_039349! {
|
|
71
|
+
COP [BranchOnFlagByte] ( #80, #01, &code_03936B )
|
|
72
|
+
COP [RemoveItem] ( #13 )
|
|
73
|
+
COP [PrintDialogString] ( &dialogstring_03939F )
|
|
74
|
+
COP [SetFlagByte] ( #80 )
|
|
75
|
+
RTS
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
-----------------------------------------
|
|
79
|
+
|
|
80
|
+
item_use_system.code_03935A! {
|
|
81
|
+
COP [BranchOnFlagByte] ( #81, #01, &code_03936B )
|
|
82
|
+
COP [RemoveItem] ( #13 )
|
|
83
|
+
COP [PrintDialogString] ( &dialogstring_03939F )
|
|
84
|
+
COP [SetFlagByte] ( #81 )
|
|
85
|
+
RTS
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
-----------------------------------------
|
|
89
|
+
|
|
90
|
+
item_use_system.code_03936B+ {
|
|
91
|
+
mu66_altar1_use_stub:
|
|
92
|
+
COP [PrintDialogString] ( &dialogstring_039370 )
|
|
93
|
+
JSR code_039349
|
|
94
|
+
RTL
|
|
95
|
+
|
|
96
|
+
mu66_altar2_use_stub:
|
|
97
|
+
COP [PrintDialogString] ( &dialogstring_039370 )
|
|
98
|
+
JSR code_03935A
|
|
99
|
+
RTL
|
|
100
|
+
}
|