//
// PulseEffectAction::valueForDelta from 0x8a3930 to 0x8a397c (76 bytes)
//
// 2 xrefs:
// > PulseEffectAction::step @ 0x8a39b4
// > ??> @ 0x79da0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
float PulseEffectAction::valueForDelta(PulseEffectAction *a1, float a2, float a3, float a4, float a5)
{
if ( a2 < a3 )
return a2 / a3;
if ( a2 <= (float)(a3 + a4) )
return 1.0;
if ( a5 <= 0.0 )
return 0.0;
return 1.0 - (float)((float)((float)(a2 - a3) - a4) / a5);
}