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
1 changed files with 15 additions and 0 deletions

View File

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