All pastes #507003 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-05-24 09:42 UTC
rendered paste body
uint32 value;
if (unitTarget->GetPowerType() == POWER_TYPE_ENERGY)
{
    value = 10;
}
else
{
    value = <formula>
}
uint32 gain = count * value;