@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.
Files changed (135) hide show
  1. package/baserom/auto-use-items/CellKeysAutoUse.patch.asm +30 -0
  2. package/baserom/auto-use-items/CrystalBallAutoUse.patch.asm +131 -0
  3. package/baserom/auto-use-items/DiamondBlockAutoUse.patch.asm +50 -0
  4. package/baserom/auto-use-items/ElevatorKeyAutoUse.patch.asm +26 -0
  5. package/baserom/auto-use-items/GorgonFlowerAutoUse.patch.asm +153 -0
  6. package/baserom/auto-use-items/HieroglyphPuzzle.patch.asm +1187 -0
  7. package/baserom/auto-use-items/HopeStatueAutoUse.patch.asm +99 -0
  8. package/baserom/auto-use-items/IncanStatueAutoUse.patch.asm +75 -0
  9. package/baserom/auto-use-items/ItemUseStub.patch.asm +24 -0
  10. package/baserom/auto-use-items/MagicPowerAutoUse.patch.asm +55 -0
  11. package/baserom/auto-use-items/MeatAutoUse.patch.asm +33 -0
  12. package/baserom/auto-use-items/MushroomDropAutoUse.patch.asm +100 -0
  13. package/baserom/auto-use-items/PalaceKeyAutoUse.patch.asm +52 -0
  14. package/baserom/auto-use-items/PrisonKeyAutoUse.patch.asm +84 -0
  15. package/baserom/auto-use-items/PurificationStoneAutoUse.patch.asm +49 -0
  16. package/baserom/auto-use-items/RamaStatueAutoUse.patch.asm +100 -0
  17. package/baserom/auto-use-items/TearpotAutoUse.patch.asm +41 -0
  18. package/baserom/{spritemaps → boot-logo}/spm_boot_logos.sprite.asm +10 -0
  19. package/baserom/collectible-system/RelicMenu.patch.asm +250 -0
  20. package/baserom/collectible-system/key_item_core.asm +445 -0
  21. package/baserom/{patches → equipped-icon}/EquippedIcon.patch.asm +41 -46
  22. package/baserom/equipped-icon/ItemSwapping.patch.asm +99 -0
  23. package/baserom/{palettes → equipped-icon}/pal_item_exprite2.pal +0 -0
  24. package/baserom/{spritemaps → equipped-icon}/spm_sc02_main_characters.sprite.asm +10 -0
  25. package/baserom/equipped-icon/spriteset_aura.asm +131 -0
  26. package/baserom/equipped-icon/spriteset_dark_friar.asm +277 -0
  27. package/baserom/equipped-icon/spriteset_darkgaia_projectile.asm +233 -0
  28. package/baserom/fixes-tweaks/BCDHex.patch.asm +60 -0
  29. package/baserom/fixes-tweaks/HudRedesign.patch.asm +108 -0
  30. package/baserom/fixes-tweaks/NeilsFatherFix.patch.asm +26 -0
  31. package/baserom/fixes-tweaks/PyramidPortalExit.patch.asm +41 -0
  32. package/baserom/fixes-tweaks/SceneTitles.patch.asm +84 -0
  33. package/baserom/fixes-tweaks/ThankfulFlower.patch.asm +28 -0
  34. package/baserom/fixes-tweaks/Utils.patch.asm +111 -0
  35. package/baserom/{spritemaps → fixes-tweaks}/spm_goldship_sprites.sprite.asm +11 -0
  36. package/baserom/fonts/EnhancedOverworldText.patch.asm +44 -0
  37. package/baserom/fonts/EnhancedPrologueText.patch.asm +252 -0
  38. package/baserom/{graphics → fonts}/gfx_fonts.bin +0 -0
  39. package/baserom/fonts/gfx_overworld_font.bin +0 -0
  40. package/baserom/inventory/EnhancedSlotActor.patch.asm +50 -0
  41. package/baserom/inventory/InventoryCounters.patch.asm +407 -0
  42. package/baserom/inventory/InventoryManagement.patch.asm +390 -0
  43. package/baserom/kara-run/gfx_castle_sprites.bin +0 -0
  44. package/baserom/new-game-plus/NGPEpilogueSwitch.patch.asm +52 -0
  45. package/baserom/{patches → new-game-plus}/NewGamePlus.patch.asm +42 -23
  46. package/baserom/oakton/map_fr30.map +0 -0
  47. package/baserom/oakton/map_fr30_effect.map +0 -0
  48. package/baserom/options-menu/EnhancedInvItemPicker.patch.asm +130 -0
  49. package/baserom/options-menu/MinimalHudOption.patch.asm +109 -0
  50. package/baserom/options-menu/OptionsMenu.patch.asm +218 -0
  51. package/baserom/options-menu/TextSpeedOption.patch.asm +108 -0
  52. package/baserom/options-menu/options_input_remap.asm +373 -0
  53. package/baserom/options-menu/options_menu_core.asm +1221 -0
  54. package/baserom/patches/APUWaitFixes.patch.asm +30 -17
  55. package/baserom/patches/AccentMap.patch.asm +16 -5
  56. package/baserom/patches/MusicTransitions.patch.asm +41 -24
  57. package/baserom/player-input/MergeInputFlags.patch.asm +146 -0
  58. package/baserom/player-input/PlayerInput.patch.asm +51 -0
  59. package/baserom/red-jewels/AnnSparkle.patch.asm +28 -0
  60. package/baserom/red-jewels/ChestFlaggedHiddenRedJewel.patch.asm +50 -0
  61. package/baserom/red-jewels/FishermanRedJewel.patch.asm +55 -0
  62. package/baserom/red-jewels/LanceSparkle.patch.asm +38 -0
  63. package/baserom/red-jewels/RedJewelSparkle.patch.asm +49 -0
  64. package/baserom/red-jewels/SnakePanicSparkle.patch.asm +45 -0
  65. package/baserom/red-jewels/SparkleAlways.patch.asm.example +19 -0
  66. package/baserom/red-jewels/StoneGirlSparkle.patch.asm +26 -0
  67. package/baserom/red-jewels/TrappedSlaveSparkle.patch.asm +63 -0
  68. package/baserom/red-jewels/generic_sparkle.asm +57 -0
  69. package/baserom/run-button/RunButtonCore.patch.asm +89 -0
  70. package/baserom/run-button/RunButtonOption.patch.asm +50 -0
  71. package/baserom/{patches/BitmapPatch.patch.asm → scene-load/BitmapLoad.patch.asm} +27 -12
  72. package/baserom/scene-load/Cop51Decompress.patch.asm +98 -0
  73. package/baserom/scene-load/ExpriteLoader.patch.asm +82 -0
  74. package/baserom/scene-load/MapNameLookup.patch.asm +27 -0
  75. package/baserom/scene-load/MenuBGLoad.patch.asm +70 -0
  76. package/baserom/scene-load/SFXTable.patch.asm +92 -0
  77. package/baserom/scene-load/SceneMetaLoad.patch.asm +68 -0
  78. package/baserom/scene-load/SpritemapLoad.patch.asm +61 -0
  79. package/baserom/scene-load/TilemapLoad.patch.asm +109 -0
  80. package/baserom/scene-load/TilesetLoad.patch.asm +41 -0
  81. package/baserom/set_overworld.set +0 -0
  82. package/baserom/seths-jewel/SethsJewelGoldShip.patch.asm +22 -0
  83. package/baserom/seths-jewel/SethsJewelIcon.patch.asm +22 -0
  84. package/baserom/seths-jewel/SethsJewelItem.patch.asm +62 -0
  85. package/baserom/seths-jewel/SethsJewelSprites.patch.asm +49 -0
  86. package/baserom/{patches → sky-delivery}/SouthCapeDeliveryman.patch.asm +12 -3
  87. package/baserom/sky-delivery/WatermiaDeliveryman.patch.asm +15 -0
  88. package/dist/index.cjs +10159 -964
  89. package/dist/index.cjs.map +1 -1
  90. package/dist/index.d.cts +9 -1
  91. package/dist/index.d.cts.map +1 -1
  92. package/dist/index.d.mts +9 -1
  93. package/dist/index.d.mts.map +1 -1
  94. package/dist/index.mjs +10161 -967
  95. package/dist/index.mjs.map +1 -1
  96. package/package.json +10 -8
  97. package/baserom/asm/spriteset_aura.asm +0 -122
  98. package/baserom/asm/spriteset_dark_friar.asm +0 -268
  99. package/baserom/asm/spriteset_will_projectile.asm +0 -224
  100. package/baserom/patches/Cop51Patch.patch.asm +0 -81
  101. package/baserom/patches/DPShop.asm.old +0 -328
  102. package/baserom/patches/DeathWarp.asm.old +0 -174
  103. package/baserom/patches/ExpandedHealthBars.old +0 -203
  104. package/baserom/patches/ExpriteLoader.patch.asm +0 -66
  105. package/baserom/patches/GemShop.asm.old +0 -345
  106. package/baserom/patches/InventoryCounters.patch.asm +0 -292
  107. package/baserom/patches/InventoryManagement.patch.asm +0 -324
  108. package/baserom/patches/InventoryScript.asm.old +0 -319
  109. package/baserom/patches/ItemDictionary.asm.old +0 -86
  110. package/baserom/patches/ItemRewards.asm.old +0 -49
  111. package/baserom/patches/ItemSwapping.patch.asm +0 -80
  112. package/baserom/patches/MapNameLookup.patch.asm +0 -13
  113. package/baserom/patches/MenuBGPatch.patch.asm +0 -54
  114. package/baserom/patches/NGPEpilogueSwitch.patch.asm +0 -44
  115. package/baserom/patches/PixelConverter.patch.asm.old +0 -60
  116. package/baserom/patches/QuickScripts.asm.old +0 -210
  117. package/baserom/patches/RunButton.patch.asm +0 -79
  118. package/baserom/patches/SFXTable.patch.asm +0 -73
  119. package/baserom/patches/SceneLoadPatch.patch.asm +0 -52
  120. package/baserom/patches/SpritemapPatch.patch.asm +0 -45
  121. package/baserom/patches/Teleporter.patch.asm.old +0 -203
  122. package/baserom/patches/TilemapPatch.patch.asm +0 -94
  123. package/baserom/patches/TilesetPatch.patch.asm +0 -27
  124. package/baserom/patches/Utils.patch.asm +0 -414
  125. package/baserom/patches/WatermiaDeliveryman.patch.asm +0 -2
  126. /package/baserom/{graphics → boot-logo}/gfx_boot_exprite.raw.bin +0 -0
  127. /package/baserom/{graphics → boot-logo}/gfx_boot_logos.bin +0 -0
  128. /package/baserom/{palettes → boot-logo}/pal_boot_logos.pal +0 -0
  129. /package/baserom/{palettes → equipped-icon}/fx_palette_198000.pal +0 -0
  130. /package/baserom/{graphics → equipped-icon}/gfx_item_exprite.raw.bin +0 -0
  131. /package/baserom/{graphics → equipped-icon}/misc_fx_1CD580.bin +0 -0
  132. /package/baserom/{palettes → equipped-icon}/pal_item_exprite.pal +0 -0
  133. /package/baserom/{palettes → equipped-icon}/pal_sc02_main_characters.pal +0 -0
  134. /package/baserom/{graphics → fonts}/gfx_credits_font.bin +0 -0
  135. /package/baserom/{graphics → inventory}/gfx_inventory_sprites.bin +0 -0
@@ -1,81 +0,0 @@
1
- ?BANK 00
2
-
3
- ?INCLUDE 'cop_handlers_map'
4
-
5
- !SPTR $3E
6
- !DCMP_SIZE $78
7
-
8
- --------------------------------------------
9
-
10
- Decompress!:
11
- PHY
12
- PHD
13
- LDA [$0A]
14
- INC $0A
15
- INC $0A
16
- STA $003E
17
- LDA [$0A]
18
- INC $0A
19
- AND #$00FF
20
- SEP #$20
21
- STA $0040
22
- REP #$20
23
- LDA [$0A]
24
- INC $0A
25
- INC $0A
26
- STA $007A
27
- LDA [$0A]
28
- INC $0A
29
- AND #$00FF
30
- LDA #$0000
31
- TCD
32
-
33
- cop51_main:
34
- LDA [SPTR]
35
- BMI cop51_minus
36
- BEQ cop51_zero
37
- STA DCMP_SIZE
38
- INC SPTR
39
- INC SPTR
40
- JSL $@QuintetLzDecompress
41
- JSL $@ClearActorRenderList
42
- BRA cop51_end
43
-
44
- cop51_zero:
45
- LDA #$2000
46
- BRA cop51_domvn
47
-
48
- cop51_minus:
49
- LDA #$0000
50
- SEC
51
- SBC [SPTR]
52
-
53
- cop51_domvn:
54
- INC SPTR
55
- INC SPTR
56
-
57
- SEC
58
- SBC #$0001
59
- PHA
60
-
61
- SEP #$20
62
- LDA #$7E
63
- STA $0404
64
- LDA SPTR+2
65
- STA $0405
66
- REP #$20
67
-
68
- LDX SPTR
69
- LDY $7A
70
-
71
- PLA
72
- JSR $0402
73
-
74
- cop51_end:
75
- PLD
76
- PLY
77
- TYX
78
- LDA $0A
79
- STA $02, S
80
- RTI
81
-
@@ -1,328 +0,0 @@
1
- ?BANK 0C
2
-
3
- !token1 00E6
4
- !token2 00E8
5
- !dp_owned 0AD6
6
-
7
-
8
- ;This is a sample actor that behaves like a shop which takes DP
9
- ;To use this, replace an actor in scene events with this
10
- ;Example for Euro market: actor < #1A, #40, #00, %DPShop > ;1E
11
-
12
-
13
- -------------------------------
14
-
15
- h_actor < #02, #00, #10 >
16
-
17
- main:
18
- LDA $0E
19
- ASL
20
- ASL
21
- ASL
22
- CLC
23
- ADC #$0002
24
- STA $28
25
- STZ $002A
26
- COP [C1]
27
- COP [8B]
28
- LDA #$3000
29
- STA $0E
30
- COP [0B]
31
- COP [C0] ( &on_interact )
32
- COP [C1]
33
- RTL
34
-
35
- ------------------------------------------------
36
-
37
- reward_table:
38
- #$0006 #$0081 #$0082 #$001A #$001D #$0012
39
-
40
- price_table:
41
- #$0019 #$0032 #$0032 #$0032 #$0004 #$0005
42
-
43
- ------------------------------------------------
44
-
45
- on_interact:
46
- COP [BF] ( &dialog_intro )
47
-
48
- LDA $dp_owned
49
- JSR double_dabble
50
- STA $token1
51
-
52
- COP [BF] ( &dialog_setup )
53
-
54
- ;COP [D0] ( #E9, #00, &print1 )
55
- ;COP [BF] ( &palette )
56
-
57
- print1:
58
- LDA #$0000
59
- JSR print_entry
60
- COP [D1] ( #$0180, #00, &print2 )
61
- COP [BF] ( &palette )
62
-
63
- print2:
64
- LDA #$0001
65
- JSR print_entry
66
- COP [D1] ( #$0181, #00, &print3 )
67
- COP [BF] ( &palette )
68
-
69
- print3:
70
- LDA #$0002
71
- JSR print_entry
72
- COP [D1] ( #$0182, #00, &print4 )
73
- COP [BF] ( &palette )
74
-
75
- print4:
76
- LDA #$0003
77
- JSR print_entry
78
- ; COP [D0] ( #ED, #00, &print5 )
79
- ; COP [BF] ( &palette )
80
-
81
- ;print5:
82
- ; LDA #$0004
83
- ; JSR print_entry
84
- ; COP [D0] ( #EE, #00, &print6 )
85
- ; COP [BF] ( &palette )
86
-
87
- ;print6:
88
- ; LDA #$0005
89
- ; JSR print_entry
90
-
91
- COP [BE] ( #04, #01, &selection_table )
92
-
93
-
94
- -----------------------------------------------
95
-
96
- print_entry:
97
- PHX
98
- ASL
99
- TAX
100
- LDA %price_table, X
101
- JSR double_dabble
102
- STA $token2 ;Store price for string
103
- LDA %reward_table, X
104
- PLX
105
-
106
- BIT #$0080
107
- BEQ show_item
108
- SEC
109
- SBC #$0080
110
- BEQ show_hp
111
- DEC
112
- BEQ show_str
113
- DEC
114
- BEQ show_def
115
-
116
- COP [BF] ( &heal )
117
- BRA do_price
118
-
119
- show_item:
120
- STA $token1 ;Store item ID for string
121
- JSL GemShop
122
- BRA do_price
123
-
124
- ;show_nothing:
125
- ; COP [BF] ( &nothing )
126
- ; BRA do_price
127
-
128
- show_hp:
129
- COP [BF] ( &health )
130
- BRA do_price
131
-
132
- show_str:
133
- COP [BF] ( &strength )
134
- BRA do_price
135
-
136
- show_def:
137
- COP [BF] ( &defense )
138
-
139
- do_price:
140
- LDA $0998
141
- AND #$FFC0
142
- ORA #$0030
143
- STA $0998
144
- COP [BF] ( &price )
145
- RTS
146
-
147
-
148
- --------------------------------------------
149
-
150
- give_reward:
151
- PHX
152
- ASL
153
- TAX
154
- LDA $dp_owned
155
- STA $0000
156
- SEC
157
- SBC %price_table, X
158
- BPL has_enough
159
-
160
- PLX
161
- COP [BF] ( &not_enough )
162
- SEC
163
- RTS
164
-
165
- has_enough:
166
- STA $dp_owned
167
- LDA %reward_table, X
168
- PLX
169
-
170
- JSL $83EF97
171
- BCS no_room
172
- RTS
173
-
174
- no_room:
175
- LDA $0000
176
- STA $dp_owned
177
- COP [BF] ( &inv_full )
178
- SEC
179
- RTS
180
-
181
- --------------------------------------------
182
-
183
- selection_table:
184
- &on_cancel
185
- &on_select1
186
- &on_select2
187
- &on_select3
188
- &on_select4
189
- ;&on_select5
190
- ;&on_select6
191
-
192
- on_cancel:
193
- COP [BF] ( &farewell )
194
- RTL
195
-
196
- on_select1:
197
- ;COP [D0] ( #E9, #01, &on_reselect )
198
- LDA #$0000
199
- JSR give_reward
200
- BCS no_reward
201
- ;COP [CC] ( #E9 )
202
- BRA on_finish
203
-
204
- on_select2:
205
- COP [D1] ( #0180, #01, &on_reselect )
206
- LDA #$0001
207
- JSR give_reward
208
- BCS no_reward
209
- COP [CD] ( #0180 )
210
- BRA on_finish
211
-
212
- on_select3:
213
- COP [D1] ( #0181, #01, &on_reselect )
214
- LDA #$0002
215
- JSR give_reward
216
- BCS no_reward
217
- COP [CD] ( #$0181 )
218
- BRA on_finish
219
-
220
- on_select4:
221
- COP [D1] ( #$0182, #01, &on_reselect )
222
- LDA #$0003
223
- JSR give_reward
224
- BCS no_reward
225
- COP [CD] ( #$0182 )
226
- BRA on_finish
227
-
228
- ;on_select5:
229
- ; COP [D0] ( #04, #01, &on_reselect )
230
- ; LDY #$0004
231
- ; JSR give_reward
232
- ; BCC no_reward
233
- ; COP [CC] ( #ED )
234
- ; BRA on_finish
235
-
236
- ;on_select6:
237
- ; COP [D0] ( #EE, #01, &on_reselect )
238
- ; LDY #$0005
239
- ; JSR give_reward
240
- ; BCC no_reward
241
- ; COP [CC] ( #EE )
242
- ; BRA on_finish
243
-
244
- no_reward:
245
- RTL
246
-
247
- on_reselect:
248
- COP [BF] ( &reselect )
249
- RTL
250
-
251
- on_finish:
252
- COP [BF] ( &thankyou )
253
- RTL
254
-
255
- -------------------------------------
256
-
257
- double_dabble:
258
- PHX
259
- PHY
260
- TAX
261
- LDY #$0000
262
- LDA #$000F
263
- STA $token1
264
- BRA dabble_next
265
-
266
- carry_first:
267
- TYA
268
- AND #$0F00
269
- CMP #$0500
270
- BMI carry_second
271
- TYA
272
- CLC
273
- ADC #$0300
274
- TAY
275
-
276
- carry_second:
277
- TYA
278
- AND #$00F0
279
- CMP #$0050
280
- BMI carry_third
281
- TYA
282
- CLC
283
- ADC #$0030
284
- TAY
285
-
286
- carry_third:
287
- TYA
288
- AND #$000F
289
- CMP #$0005
290
- BMI dabble_next
291
- TYA
292
- CLC
293
- ADC #$0003
294
- TAY
295
-
296
- dabble_next:
297
- TXA
298
- ROL
299
- TAX
300
- TYA
301
- ROL
302
- TAY
303
- DEC $token1
304
- BPL carry_first
305
-
306
- dabble_end:
307
- TYA
308
- PLY
309
- PLX
310
- RTS
311
-
312
- ----------------------------------------------------
313
-
314
- dialog_intro `[DEF]Welcome to my shop.[N]Take a look around![END]`
315
- dialog_setup `[DLG:3,D][SIZ:D,5][CLR][SFX:0] Dark Points: [BCD:3,token1]`
316
- not_enough `[CLD][DEF]You don't have enough[N]Dark Points.[END]`
317
- farewell `[CLD][DEF]Come back soon![END]`
318
- thankyou `[CLD][DEF]Thank you![END]`
319
- reselect `[CLD][DEF]You already bought this.[END]`
320
- inv_full `[CLD][DEF]Your inventory is full![END]`
321
-
322
- price ` [BCD:2,token2][PAL:0]`
323
- strength `[N] Strength`
324
- defense `[N] Defense`
325
- health `[N] Health`
326
- heal `[N] Heal`
327
- ;nothing `[N] Nothing`
328
- palette `[PAL:4]`
@@ -1,174 +0,0 @@
1
- ?BANK 0C
2
-
3
- !current_scene 0644
4
- !player_health 0ACE
5
-
6
- ;This script replaces the default death warp process with a lookup table
7
- ;This clears up $0AF0 which no longer gets utilized (fixes potential softlock when loading a save file from a modified rom and dying)
8
- ;The script also prevents the dungeon clear flags from being reset, so dying does not reset rooms.
9
- ;If dungeon reset is to be enabled again, you would need to add a new hook for 00D6CC instead of replacing the code
10
-
11
- ----------------------------------------
12
-
13
- main:
14
- LDA $09AE
15
- BIT #$0008
16
- BNE do_disabled
17
- LDA $current_scene
18
- CMP #$00E6
19
- BEQ do_disabled
20
- BRA begin_confirm
21
-
22
- do_disabled:
23
- COP [BF] ( &disabled_message )
24
- RTL
25
-
26
- begin_confirm:
27
- COP [BF] ( &confirm_message )
28
- COP [BE] ( #02, #02, &confirm_options )
29
-
30
- confirm_options:
31
- &on_cancel
32
- &on_confirm
33
- &on_cancel
34
-
35
- on_cancel:
36
- COP [BF] ( &close_msg )
37
- RTL
38
-
39
- on_confirm:
40
- COP [BF] ( &close_msg )
41
- LDA #$0200
42
- TSB $09AE ;Flag player as dying
43
- LDY $09AA ;Get player actor
44
- LDA #$D62F
45
- STA $0000, Y ;Set new entry point
46
- LDA #$0080
47
- STA $0002, Y
48
- JSL $80F3B3 ;This call stops the player and disables weapon collision
49
- RTL
50
-
51
-
52
- disabled_message `[DEF]The book is shut tight.[END]`
53
-
54
- confirm_message `[DEF]Are you sure you want[N]to open the book?[N] Yes[N] No`
55
-
56
- close_msg `[CLD]`
57
-
58
- -----------------------------------------------------------------
59
-
60
- warp_lookup:
61
- ; 0 1 2 3 4 5 6 7 8 9 A B C D E F
62
- #00 #00 #00 #00 #00 #00 #00 #00 #00 #00 #00 #00 #00 #00 #00 #00 ;00
63
- #00 #00 #01 #00 #00 #00 #00 #00 #00 #00 #00 #01 #00 #02 #03 #02 ;10
64
- #02 #02 #02 #02 #02 #02 #02 #02 #02 #03 #00 #00 #00 #00 #00 #00 ;20
65
- #00 #00 #00 #00 #00 #00 #00 #00 #00 #00 #00 #00 #00 #04 #04 #04 ;30
66
- #04 #04 #04 #04 #04 #04 #04 #04 #00 #00 #00 #00 #05 #06 #06 #07 ;40
67
- #07 #08 #08 #09 #09 #05 #00 #00 #00 #00 #0A #0A #0A #0A #0A #0B ;50
68
- #0B #0B #0B #0B #0B #0B #0C #0C #00 #00 #00 #00 #00 #0D #0D #0D ;60
69
- #0D #0D #0D #0D #0D #0D #00 #00 #0E #00 #00 #00 #00 #00 #00 #00 ;70
70
- #00 #00 #0F #0F #00 #0F #0F #0F #0F #00 #10 #00 #00 #00 #00 #00 ;80
71
- #00 #00 #00 #00 #00 #00 #00 #00 #00 #00 #00 #00 #00 #00 #00 #00 ;90
72
- #11 #11 #11 #11 #11 #11 #11 #11 #11 #11 #11 #00 #00 #00 #00 #00 ;A0
73
- #12 #12 #12 #12 #12 #12 #13 #13 #13 #13 #13 #13 #00 #00 #00 #00 ;B0
74
- #00 #00 #00 #00 #00 #00 #00 #00 #00 #00 #00 #00 #14 #15 #16 #16 ;C0
75
- #17 #17 #18 #18 #19 #19 #1A #1A #1B #1B #1B #1B #00 #15 #00 #00 ;D0
76
- #1D #1D #1E #1F #00 #00 #00 #00 #22 #23 #23 #00 #00 #00 #00 #00 ;E0
77
- #00 #00 #1D #1D #1E #1E #1F #00 #00 #00 #00 #00 #00 #00 #00 #00 ;F0
78
-
79
-
80
- warp_data:
81
- #0B #$00E8 #$00A0 #83 #$3200 ;00 - Prison cell
82
- #1B #$00F8 #$01C0 #80 #$2200 ;01 - Moon tribe trial
83
- #1D #$02A8 #$0060 #83 #$6300 ;02 - Larai cliff
84
- #1E #$03A8 #$0040 #83 #$2400 ;03 - Cliff base
85
- #3E #$00A8 #$03D0 #80 #$4200 ;04 - Diamond mine
86
- #4C #$0168 #$0040 #83 #$2200 ;05 - Sky Garden (Center)
87
- #4D #$0010 #$00E8 #87 #$4400 ;06 - Sky Garden (East)
88
- #4F #$0078 #$0030 #83 #$4400 ;07 - Sky Garden (SE)
89
- #51 #$0378 #$0030 #83 #$4400 ;08 - Sky Garden (SW)
90
- #53 #$03E0 #$0068 #86 #$4400 ;09 - Sky Garden (West)
91
- #5A #$0090 #$0070 #83 #$1400 ;0A - Seaside Palace
92
- #5F #$0080 #$0040 #83 #$4400 ;0B - Mu
93
- #66 #$00F8 #$01D8 #80 #$2200 ;0C - Mu (boss)
94
- #6D #$0078 #$0070 #83 #$1400 ;0D - Angel Tunnel
95
- #79 #$0070 #$00B0 #80 #$1100 ;0E - Watermia House
96
- #82 #$0020 #$0090 #87 #$1800 ;0F - Great Wall
97
- #8A #$0050 #$0090 #87 #$3300 ;10 - Great Wall (boss)
98
- #A0 #$02C8 #$01B0 #86 #$2300 ;11 - Mountain Temple
99
- #B0 #$01F8 #$04C0 #80 #$5400 ;12 - Ankor Wat (Entrance)
100
- #B6 #$02F8 #$03D0 #80 #$4600 ;13 - Ankor Wat (Garden)
101
- #CC #$0010 #$00D0 #87 #$4400 ;14 - Pyramid (Left)
102
- #CD #$0080 #$00C0 #80 #$1100 ;15 - Pyramid (Puzzle)
103
- #CE #$0570 #$00C0 #80 #$4600 ;16 - Pyramid 1
104
- #D0 #$0470 #$00C0 #80 #$5500 ;17 - Pyramid 2
105
- #D2 #$0070 #$00C0 #80 #$4600 ;18 - Pyramid 6
106
- #D4 #$0070 #$00C0 #80 #$5500 ;19 - Pyramid 5
107
- #D6 #$0070 #$00C0 #80 #$5500 ;1A - Pyramid 3
108
- #D8 #$0480 #$00C0 #80 #$5500 ;1B - Pyramid 4
109
- #DE #$0178 #$00C0 #80 #$1201 ;1C - Babel Comet Room
110
- #E0 #$0098 #$0390 #83 #$4830 ;1D - Babel (Floor 1)
111
- #E0 #$00D8 #$0190 #83 #$2610 ;1E - Babel (Floor 2)
112
- #E3 #$00D8 #$0390 #83 #$4430 ;1F - Babel (Floor 3)
113
- #E3 #$0280 #$01A0 #80 #$2310 ;20 - Babel (Floor 4)
114
- #E4 #$00F0 #$0140 #80 #$2200 ;21 - Babel (Roof)
115
- #E8 #$0000 #$0000 #80 #$2100 ;22 - Comet Fight
116
- #E9 #$0330 #$03D0 #80 #$4400 ;23 - Mansion
117
-
118
- ;#1C #$0068 #$01A0 #80 #$2200 ;Entrance to ruins
119
- ;#58 #$0000 #$0000 #80 #$1100 ;Landing on Plane
120
-
121
- ------------------------------------------------------
122
-
123
- do_check:
124
- PHB
125
- LDA $player_health
126
- BEQ do_normal
127
- JML $80D6CC
128
-
129
- do_normal:
130
- LDA $0AD6
131
- JML $80D68F
132
-
133
- ----------------------------------------------------
134
-
135
- 0090B5: ;Entry point for COP 26 processing, skip checking the death flag
136
- LDA $0A
137
- STA $02, S
138
- RTI
139
-
140
- 00D68B: ;Entry point for start of death logic
141
- JML do_check
142
-
143
- ;(Exact fit, do not modify, use a hook)
144
- 00D6CC: ;Entry point for code that executes when clear data is about to be erased
145
- PHX
146
- LDX $current_scene
147
- LDA %warp_lookup, X
148
- AND #$00FF
149
- PLX
150
- ASL
151
- ASL
152
- ASL
153
- CLC
154
- ADC #&warp_data
155
- TAY
156
- SEP #$20
157
- LDA #^warp_lookup
158
- PHA
159
- PLB
160
-
161
-
162
- 00D70F: ;Do not set AF8
163
- NOP
164
- NOP
165
- NOP
166
-
167
- 02AADF: ;Entry point for checking death warp flag
168
- PLP
169
- SEC
170
- RTS
171
-
172
- 039427: ;Entry point for blue journal use
173
- JSL main
174
- RTS