mirror of
https://github.com/notwa/mm
synced 2024-11-04 22:59:03 -08:00
add actor/object spawning to MM (J) 1.0
This commit is contained in:
parent
9fbe275189
commit
6a641f6b90
2 changed files with 35 additions and 1 deletions
|
@ -11,6 +11,12 @@ local injection_points = {
|
|||
ow_addr = 0x1749D0,
|
||||
ow_before = 0x0C05CEC6,
|
||||
},
|
||||
['M JP10'] = {
|
||||
inject_addr = 0x780000,
|
||||
inject_maxlen = 0x5A800,
|
||||
ow_addr = 0x1701A8,
|
||||
ow_before = 0x0C05BCD4,
|
||||
},
|
||||
['O US10'] = {
|
||||
inject_addr = 0x3BC000,
|
||||
inject_maxlen = 0x1E800,
|
||||
|
@ -110,5 +116,9 @@ end
|
|||
if oot then
|
||||
inject('spawn oot.asm')
|
||||
else
|
||||
inject('spawn mm.asm')
|
||||
if version == 'M JP10' or version == 'M JP11' then
|
||||
inject('spawn mm early.asm')
|
||||
else
|
||||
inject('spawn mm.asm')
|
||||
end
|
||||
end
|
||||
|
|
24
Lua/inject/spawn mm early.asm
Normal file
24
Lua/inject/spawn mm early.asm
Normal file
|
@ -0,0 +1,24 @@
|
|||
[actor_spawn]: 0x800BC98C
|
||||
[object_spawn]: 0x80130D50
|
||||
[max_actor_no]: 0x2B1
|
||||
|
||||
[global_context]: 0x803E6CF0
|
||||
[buttons_offset]: 0x14
|
||||
[actor_spawn_offset]: 0x1CA0
|
||||
[object_spawn_offset]: 0x17D68
|
||||
|
||||
[link_actor]: 0x803FFFA0
|
||||
[actor_x]: 0x24
|
||||
[actor_y]: 0x28
|
||||
[actor_z]: 0x2C
|
||||
[actor_horiz_angle]: 0x32
|
||||
|
||||
[link_save]: 0x801EF460
|
||||
[rupees_offset]: 0x3A
|
||||
[upgrades_offset]: 0xB8
|
||||
[upgrades_2_offset]: 0xBA
|
||||
|
||||
.include "spawn.asm"
|
||||
|
||||
actor_object_table:
|
||||
.include "actor object table mm.asm"
|
Loading…
Reference in a new issue