Fix a bunch of SNES lua scripts
This commit is contained in:
parent
3ebd9bb2df
commit
fa0db935e3
|
@ -6,8 +6,8 @@
|
|||
local pbase = 0xBA8
|
||||
local px = 0xBAD
|
||||
local py = 0xBB0
|
||||
local cx = 0x7E00B4
|
||||
local cy = 0x7E00B6
|
||||
local cx = 0x00B4
|
||||
local cy = 0x00B6
|
||||
|
||||
---------------
|
||||
----TOGGLES----
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
local pbase = 0x9D8
|
||||
local px = pbase +0x5
|
||||
local py = pbase +0x8
|
||||
local cx = 0x7E1E5D
|
||||
local cy = 0x7E1E60
|
||||
local cx = 0x1E5D
|
||||
local cy = 0x1E60
|
||||
local xm
|
||||
local ym
|
||||
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
local pbase = 0x9D8
|
||||
local px = pbase +0x5
|
||||
local py = pbase +0x8
|
||||
local cx = 0x7E1E5D
|
||||
local cy = 0x7E1E60
|
||||
local cx = 0x1E5D
|
||||
local cy = 0x1E60
|
||||
local xm
|
||||
local ym
|
||||
|
||||
|
|
|
@ -10,8 +10,8 @@
|
|||
---Green = Projectile vulnerability for enemies
|
||||
---White = Arthurs magic and weapons
|
||||
|
||||
local left_edge = 0x7E15DD
|
||||
local top_edge = 0x7E15E1
|
||||
local left_edge = 0x15DD
|
||||
local top_edge = 0x15E1
|
||||
local xm
|
||||
local ym
|
||||
|
||||
|
@ -162,7 +162,7 @@ local function draw_weapons()
|
|||
end
|
||||
|
||||
-- If we have the gold armor and not the magic bracelet, check for magic hitboxes
|
||||
if mainmemory.read_u8(0x7E14BA) == 0x04 and mainmemory.read_u8(weapon) ~= 0x0E then
|
||||
if mainmemory.read_u8(0x14BA) == 0x04 and mainmemory.read_u8(weapon) ~= 0x0E then
|
||||
|
||||
ostart = 0x0707
|
||||
|
||||
|
|
|
@ -13,8 +13,8 @@ local ys
|
|||
local function Samus()
|
||||
local x = mainmemory.read_u16_le(px) - mainmemory.read_u16_le(camx)
|
||||
local y = mainmemory.read_u16_le(py) - mainmemory.read_u16_le(camy)
|
||||
local xrad = mainmemory.read_u8(0x7E0AFE)
|
||||
local yrad = mainmemory.read_u8(0x7E0B00)
|
||||
local xrad = mainmemory.read_u8(0x0AFE)
|
||||
local yrad = mainmemory.read_u8(0x0B00)
|
||||
|
||||
gui.drawBox(x + (xrad * -1), y + (yrad * -1), x+xrad,y+yrad,0xFF0000FF,0x350000FF)
|
||||
|
||||
|
|
Loading…
Reference in New Issue