Esempio n. 1
0
SWRange SW_LightningStorm::GetRange(const SWTypeExt::ExtData* pData) const
{
	if(pData->SW_Range.empty()) {
		return SWRange(RulesClass::Instance->LightningCellSpread);
	}
	return pData->SW_Range;
}
Esempio n. 2
0
SWRange SW_PsychicDominator::GetRange(const SWTypeExt::ExtData* pData) const
{
	if(pData->SW_Range.empty()) {
		return SWRange(RulesClass::Instance->DominatorCaptureRange);
	}
	return pData->SW_Range;
}
Esempio n. 3
0
SWRange SW_SonarPulse::GetRange(const SWTypeExt::ExtData* pData) const
{
	if(pData->SW_Range.empty()) {
		return SWRange(10);
	}
	return pData->SW_Range;
}
Esempio n. 4
0
SWRange SW_Reveal::GetRange(const SWTypeExt::ExtData* pData) const
{
    if(pData->SW_Range.empty()) {
        int radius = RulesClass::Instance->PsychicRevealRadius;

        // real default values, that is, force max cellspread range of 10
        if(radius > 10) {
            radius = 10;
        }

        return SWRange(radius);
    }
    return pData->SW_Range;
}