Fixed bubble behavior for character movesets and made Luigi's vertical swimming fast

This commit is contained in:
MysterD 2022-01-29 01:15:45 -08:00
parent 28a979120a
commit 459aadf000

View file

@ -31,6 +31,9 @@ function luigi_before_phys_step(m)
-- faster swimming -- faster swimming
if (m.action & ACT_FLAG_SWIMMING) ~= 0 then if (m.action & ACT_FLAG_SWIMMING) ~= 0 then
hScale = hScale * 1.5 hScale = hScale * 1.5
if m.action ~= ACT_WATER_PLUNGE then
vScale = vScale * 1.5
end
end end
-- slower holding item -- slower holding item
@ -313,6 +316,10 @@ gEventTable[CT_WALUIGI] = {
---------- ----------
function mario_before_phys_step(m) function mario_before_phys_step(m)
if m.action == ACT_BUBBLED then
return
end
if gEventTable[m.character.type] == nil then if gEventTable[m.character.type] == nil then
return return
end end
@ -320,6 +327,10 @@ function mario_before_phys_step(m)
end end
function mario_on_set_action(m) function mario_on_set_action(m)
if m.action == ACT_BUBBLED then
return
end
if gEventTable[m.character.type] == nil then if gEventTable[m.character.type] == nil then
return return
end end
@ -327,6 +338,10 @@ function mario_on_set_action(m)
end end
function mario_update(m) function mario_update(m)
if m.action == ACT_BUBBLED then
return
end
if gEventTable[m.character.type] == nil then if gEventTable[m.character.type] == nil then
return return
end end