player_patches: added penalty to Unleash Cancel

This commit is contained in:
Hyper 2024-11-20 01:10:29 +00:00
parent 0911d3a8a8
commit ad0ee431fc

View file

@ -86,7 +86,7 @@ void PostUnleashMidAsmHook(PPCRegister& r30)
if (m_isUnleashCancelled) if (m_isUnleashCancelled)
{ {
if (auto pEvilSonicContext = (SWA::Player::CEvilSonicContext*)g_memory.Translate(r30.u32)) if (auto pEvilSonicContext = (SWA::Player::CEvilSonicContext*)g_memory.Translate(r30.u32))
pEvilSonicContext->m_DarkGaiaEnergy = m_lastDarkGaiaEnergy; pEvilSonicContext->m_DarkGaiaEnergy = m_lastDarkGaiaEnergy - 35.0f;
m_isUnleashCancelled = false; m_isUnleashCancelled = false;
} }