Creating World Wonder with Upgrade Discount

deanej

Deity
Joined
Apr 8, 2006
Messages
4,859
Location
New York State
I currently have a world wonder in Star Trek that provides a 50% upgrade discount for all the player's units. It's currently implemented by merging one of the python wonders in to Star Trek; however, I would like to eliminate the use of the callback needed and return upgrade price functionality back to the DLL, but I can't figure out how to implement it. Help is needed and appreciated.
 
a. If this is the Tsentom Leonardo's workshop, I used this python code in DuneWars and discovered it is quite incorrect. The scaling by 50% happens multiple times on subsequent lines so the actual reduction is like 99% instead of 50%.

b. The above code is based on the sdk function CvUnit::upgradePrice. You may wish to change this function.
 
Back
Top Bottom