• Our friends from AlphaCentauri2.info are in need of technical assistance. If you have experience with the LAMP stack and some hours to spare, please help them out and post here.

Unit base strength from UnitType

Baldyr

"Hit It"
Joined
Dec 5, 2009
Messages
5,530
Location
Sweden
I'm experiencing an unexpected problem. I need to retrieve the base unit strength for a unit type - without using CyUnit.baseCombatStr(). I naturally counted on there being something like CvUnitInfo.baseStrength(). But I guess not... :rolleyes:

Is there a way to do this - with Python - without actually creating a new unit and using the baseCombatStr() method on its CyUnit object?

edit: Wait a minute - its CvUnitInfo.getCombat(), isn't it? :p
Code:
iStrength = gc.getUnitInfo(eUnitType).getCombat()
In that case, never mind. :rolleyes:
 
I'm experiencing an unexpected problem. I need to retrieve the base unit strength for a unit type - without using CyUnit.baseCombatStr(). I naturally counted on there being something like CvUnitInfo.baseStrength(). But I guess not... :rolleyes:

Is there a way to do this - with Python - without actually creating a new unit and using the baseCombatStr() method on its CyUnit object?

edit: Wait a minute - its CvUnitInfo.getCombat(), isn't it? :p
Code:
iStrength = gc.getUnitInfo(eUnitType).getCombat()
In that case, never mind. :rolleyes:

:yup:
 
Back
Top Bottom