AIDef:Action/GuardianChargeBeam: Difference between revisions
Jump to navigation
Jump to search
→Init function
imported>Leoetlino No edit summary |
imported>Leoetlino |
||
Line 10: | Line 10: | ||
void AI_Action_GuardianChargeBeam::init(AI_Action_GuardianChargeBeam *this) | void AI_Action_GuardianChargeBeam::init(AI_Action_GuardianChargeBeam *this) | ||
{ | { | ||
this->elapsedTime = 0.0; | this->elapsedTime = 0.0; | ||
this->chargeTime = * | this->chargeTime = *this->pTime; | ||
if ( aoc2::sInstance | if ( aoc2::sInstance | ||
&& aoc2::sInstance->hardModeEnabledFlag & 1 | && aoc2::sInstance->hardModeEnabledFlag & 1 | ||
Line 18: | Line 17: | ||
&& !(5LL * sead::Random::getU32(sead::GlobalRandom::sInstance) & 0x700000000LL) ) // probability is 20% | && !(5LL * sead::Random::getU32(sead::GlobalRandom::sInstance) & 0x700000000LL) ) // probability is 20% | ||
{ | { | ||
this->chargeTime = *this->pTimeRand | this->chargeTime += *this->pTimeRand; | ||
} | } | ||
} | } |