sources » TemporalClass » GetWarpPerStep
/*
* Determines the amount of damage by frame
*/
int TemporalClass::GetWarpPerStep(int helperCount) {
int linkedDamage = 0;
if ( this->NextTemporal ) {
if ( helperCount <= 50 ) // <-- additional firers after 50 don't increase damage any further
linkedDamage = this->NextTemporal->GetWarpPerStep(helperCount + 1);
}
int idxWeapon = this->OwnerUnit->SelectWeapon(NULL);
int Damage = this->OwnerUnit->GetWeapon(idxWeapon)->Damage;
this->WarpPerStep = Damage;
return linkedDamage + Damage;
}