@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.
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 -24
  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
@@ -0,0 +1,62 @@
1
+ ; ==============================================================================
2
+ ; Seth's Jewel (item $29) - inventory item definition and use handler
3
+ ; ==============================================================================
4
+ ; What it does: Adds a non-key collectible that looks like a Red Jewel but occupies
5
+ ; its own inventory slot; manual Use prints custom text, clears the slot, then runs
6
+ ; the same BCD +1 and orbit VFX path as a real Red Jewel (UseItem_AddAndSpawn).
7
+ ; Vanilla behavior: Item $29 had blank name strings, unused UseItem_Unused handler,
8
+ ; no description-table row, and shared blank pickup text (item_pickup_text_1B).
9
+ ; Hooks (overrides): item_use_system.ItemHandlerJumpTable @+$52 -> UseItem_SethsJewel;
10
+ ; system_strings name/description strings; item_pickup_text_table @+$52 pickup line.
11
+ ; Adds: UseItem_SethsJewel, dialogstring_seths_jewel_use/get/desc (chained near tables).
12
+ ; Depends on: ?INCLUDE item_use_system, system_strings, item_pickup_text_table;
13
+ ; InventoryManagement UseItem_AddAndSpawn / RemoveEquippedItem; SethsJewelGoldShip gives #29.
14
+ ; State: Item ID $29; increments $0AB0 (jewelsCollected) only via UseItem_AddAndSpawn on use.
15
+ ; Hazards/notes: Not in KeyItemFlagIndex ($FF); AutoUseRedJewelHandler still only hooks $01.
16
+ ; Table patches use byte offset #52 (entry $29 in word-indexed tables).
17
+ ; ==============================================================================
18
+
19
+ ?INCLUDE 'item_use_system'
20
+ ?INCLUDE 'system_strings'
21
+ ?INCLUDE 'item_pickup_text_table'
22
+
23
+ -------------------------------------------------------------
24
+ ; Use handler dispatch. Array entries cannot be patched individually, so the whole table is replaced;
25
+ ; the only difference from the extracted table is entry $29.
26
+
27
+ item_use_system.ItemHandlerJumpTable#52: &UseItem_SethsJewel
28
+
29
+
30
+ ; Mirrors UseItem_RedJewel!: print text, free the slot, then BCD +1 and the orbit VFX.
31
+ ; RemoveEquippedItem treats any non-$01 item as a plain slot clear and un-equips it.
32
+ ; UseItem_AddAndSpawn ends in RTS, which returns to ItemUseEpilogue.
33
+
34
+ UseItem_SethsJewel {
35
+ COP [PrintDialogString] ( &dialogstring_seths_jewel_use )
36
+ JSR $&RemoveEquippedItem
37
+ JMP $&UseItem_AddAndSpawn
38
+ }
39
+
40
+ dialogstring_seths_jewel_use `[DEF]He raised Seth's Jewel![FIN]Seth's Jewel flies to[N]Jeweler Gem's in a[N]single ray of light![END]`
41
+
42
+ -------------------------------------------------------------
43
+ ; Names / menu text / description (item ID $29). The two blank slots already exist in the tables.
44
+
45
+ system_strings.consolestring_01DD47! |Seth's [N] Jewel |
46
+
47
+ system_strings.consolestring_01E06B! |Seth's Jewel |
48
+
49
+ system_strings.item_description_table+= [
50
+ &consolestring_seths_jewel_desc ;29
51
+ ]
52
+
53
+ consolestring_seths_jewel_desc |[DBL]Strange jewel[DBL]Seth found on[DBL]the Gold Ship.|
54
+
55
+ -------------------------------------------------------------
56
+ ; Item-get / inventory-full line printed through [ADR:&item_pickup_text_table,DB8].
57
+ ; Replaces the shared blank entry for $29 (everything else unchanged).
58
+
59
+ item_pickup_text_table.item_pickup_text_table#52: &dialogstring_seths_jewel_get
60
+
61
+
62
+ dialogstring_seths_jewel_get `You found Seth's Jewel!`
@@ -0,0 +1,49 @@
1
+ ; ==============================================================================
2
+ ; Seth's Jewel (item $29) - inventory menu sprite animation
3
+ ; ==============================================================================
4
+ ; What it does: Shows a Red-Jewel-style four-frame sparkle animation in the item grid,
5
+ ; with the jewel tile drawn using OAM palette 2 (attr $04) instead of palette 6 ($0C).
6
+ ; Vanilla behavior: inventory_spritemap[29] pointed at sprite_set_10822C with a single
7
+ ; blank $0A00 frame (sprite_group_1089B4, duration $0000).
8
+ ; Hooks (overrides): inventory_spritemap.sprite_set_10822C and sprite_group_1089B4;
9
+ ; adds sprite_group_seths_jewel_1-3 chained after the reused frame-0 group.
10
+ ; Depends on: ?INCLUDE inventory_spritemap; same-bank $& pointers to new groups.
11
+ ; Hazards/notes: Part words are attr high byte + tile low byte ($0402 = tile $02, pal 2).
12
+ ; ==============================================================================
13
+
14
+ inventory_spritemap.sprite_set_10822C! [
15
+ sprite-set < #$0005, &sprite_group_1089B4 > ;00
16
+ sprite-set < #$0005, &sprite_group_seths_jewel_1 > ;01
17
+ sprite-set < #$0005, &sprite_group_seths_jewel_2 > ;02
18
+ sprite-set < #$0005, &sprite_group_seths_jewel_3 > ;03
19
+ ]
20
+
21
+ inventory_spritemap.sprite_group_1089B4! [
22
+ sprite-group < #08, #08, #10, #00, #F8, #F0, #01, #01, #F8, #10, #F0, #10, #02, [
23
+ sprite-part < #00, #05, #03, #07, #01, #$0CE2 > ;00
24
+ sprite-part < #01, #00, #00, #00, #00, #$0402 > ;01
25
+ ] >
26
+ ]
27
+
28
+ sprite_group_seths_jewel_1 [
29
+ sprite-group < #08, #08, #10, #00, #F8, #F0, #01, #01, #F8, #10, #F0, #10, #02, [
30
+ sprite-part < #00, #05, #03, #07, #01, #$0CF2 > ;00
31
+ sprite-part < #01, #00, #00, #00, #00, #$0402 > ;01
32
+ ] >
33
+ ]
34
+
35
+ sprite_group_seths_jewel_2 [
36
+ sprite-group < #08, #08, #11, #00, #F8, #F0, #01, #01, #F8, #10, #F0, #10, #03, [
37
+ sprite-part < #00, #05, #03, #08, #01, #$0CF3 > ;00
38
+ sprite-part < #00, #05, #03, #00, #09, #$0CE3 > ;01
39
+ sprite-part < #01, #00, #00, #01, #00, #$0402 > ;02
40
+ ] >
41
+ ]
42
+
43
+ sprite_group_seths_jewel_3 [
44
+ sprite-group < #08, #08, #11, #00, #F8, #F0, #01, #01, #F8, #10, #F0, #10, #03, [
45
+ sprite-part < #00, #05, #03, #08, #01, #$0CF4 > ;00
46
+ sprite-part < #01, #00, #00, #01, #00, #$0402 > ;01
47
+ sprite-part < #00, #05, #03, #00, #09, #$0CE4 > ;02
48
+ ] >
49
+ ]
@@ -1,5 +1,14 @@
1
- ?BANK 0A
2
-
1
+ ; ==============================================================================
2
+ ; South Cape (scene $01) - Sky Deliveryman spawn placement
3
+ ; ==============================================================================
4
+ ; What it does: Appends a Sky Deliveryman actor at tile (#0C, #2F) facing #00
5
+ ; using the shared SouthCapeDeliveryman actor definition from this module set.
6
+ ; Vanilla behavior: scene_01_actors list ended without this spawn entry.
7
+ ; Hooks (overrides): scene_actors.scene_01_actors+= (actor-spawn append).
8
+ ; Adds: actor_def SouthCapeDeliveryman (skyd_* COP script and dialog strings).
9
+ ; Depends on: scene $01 actor table; COP D0/C0/BF/BE/E0/65/26 on confirm path.
10
+ ; Hazards/notes: Append-only; does not replace existing South Cape spawns.
11
+ ; ==============================================================================
3
12
 
4
13
  --------------------------------------------
5
14
 
@@ -47,4 +56,4 @@ skyd_str_confirm `[CLR][LU1:9]here, birds.[N][LU2:3F]taking [LU1:D6]person[N]to
47
56
 
48
57
  ----------------------------------------
49
58
 
50
- scene_event_0C8221+: actor-spawn < #0C, #2F, #00, @SouthCapeDeliveryman >
59
+ scene_actors.scene_01_actors+=: actor-spawn < #0C, #2F, #00, @SouthCapeDeliveryman >
@@ -0,0 +1,15 @@
1
+ ; ==============================================================================
2
+ ; Watermia (scene $78) - Sky Deliveryman fast travel NPC
3
+ ; ==============================================================================
4
+ ; What it does: Appends a Sky Deliveryman actor to scene $78; dialog offers a
5
+ ; one-way trip to South Cape (scene $0D in $0D60, warp COP 65/26 to $78 coords).
6
+ ; Vanilla behavior: scene_78_actors had no deliveryman entry at the patched slot.
7
+ ; Hooks (overrides): scene_actors.scene_78_actors+= (actor-spawn append).
8
+ ; Adds: One actor-spawn row only (no new actor_def in this file).
9
+ ; Depends on: @wa78_men actor pointer (vanilla label in extracted/watermia/wa78_men.asm).
10
+ ; State: Writes nextScene $0D60, map queue $064A $0404 on confirm.
11
+ ; Hazards/notes: Actor COP requires X = actor slot; skyd_confirm uses fixed warp
12
+ ; operands (#$00D4, #$03A4, scene #78) — verify against intended destination.
13
+ ; ==============================================================================
14
+
15
+ scene_actors.scene_78_actors+=: actor-spawn < #14, #23, #07, @wa78_men >