From 5acc823f2a2dcd9a3dea06c26428e38a69b2485f Mon Sep 17 00:00:00 2001 From: stvene3004 <54620586+stvene3004@users.noreply.github.com> Date: Sun, 6 Mar 2022 09:18:33 +0700 Subject: [PATCH] Mid-air Corkscrew Conk stuff (#14) * Mid-air Conk changes. Added a visual when the Corkscrew Conk is executed mid-air and slightly nerfed it when executed in mid-air. * Added a visual to mid-air conk and nerfed it. --- mods/character-movesets.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mods/character-movesets.lua b/mods/character-movesets.lua index dce4ec4f..2d5c34a0 100644 --- a/mods/character-movesets.lua +++ b/mods/character-movesets.lua @@ -600,6 +600,7 @@ function act_wario_air_dash(m) -- corkscrew conk if (m.input & INPUT_A_PRESSED) ~= 0 then + m.particleFlags = m.particleFlags | PARTICLE_MIST_CIRCLE set_jumping_action(m, ACT_CORKSCREW_CONK, 0) play_character_sound(m, CHAR_SOUND_YAHOO) end @@ -826,7 +827,12 @@ function wario_on_set_action(m) if m.action == ACT_CORKSCREW_CONK then mario_set_forward_vel(m, 60) m.vel.x = 0 - m.vel.y = 70.0 + -- nerf the conk when executed in the air + if (m.prevAction == ACT_WARIO_DASH) then + m.vel.y = 70.0 + elseif (m.prevAction == ACT_WARIO_AIR_DASH) then + m.vel.y = 60.0 + end m.vel.z = 0 elseif m.action == ACT_SLIDE_KICK then mario_set_forward_vel(m, 70)