UnitCombat not changed by Upgrade

Kael

Deity
Joined
May 6, 2002
Messages
17,403
Location
Paris, France
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 said:
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.
 
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.
 
Interesting - bug or feature?
 
Optimizer said:
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.
 
Back
Top Bottom