View Full Version : UnitCombat not changed by Upgrade


Kael
Dec 30, 2005, 09:33 PM
I've noticed that the typical unit upgrade you do in the game doesn't actually change the unitcomabt type. So if you upgrade a warrior to an archer, even though he looks like an archer he is in fact still a melee unit beneath the covers. Things that get bonus's to melee units will get bonus's against him, he will continue to get melee type promotions, events that use the unitcombat type will still think he is a melee unit, etc.

I think its a bug. Any idea of how I would report this to Firaxis?

Seven05
Dec 30, 2005, 09:49 PM
Does the same happen when you upgrade an Archer, for example, to a Rifleman?

Kael
Dec 30, 2005, 10:29 PM
Does the same happen when you upgrade an Archer, for example, to a Rifleman?

No, your right. It only happens when you upgrade units to the UnitCombats I created for my mod. Interesting. I will have to do some digging.

Kael
Dec 30, 2005, 11:42 PM
I found some UnitCombat definitions in the PyHelpers.py file. I added everything into there and it seems to be working better. My current problem is I have an event kicking whenever a unit is created to set some values on the unit but I can't find any event that kicks when a unit is upgraded.

Anyone know of a unit that fires when a unit is upgraded? I would have to have to search through all of the untis at the begining of each turn to set these settings.

Optimizer
Dec 31, 2005, 12:41 AM
Interesting - bug or feature?

Kael
Dec 31, 2005, 12:49 AM
Interesting - bug or feature?

Feature. I think the code is working as advertised, Im just not finding the way to use it like I want. Im gonna sleep on it and see if I can come up with something.