Complete.Org:
Mailing Lists:
Archives:
freeciv-dev:
August 2005: [Freeciv-Dev] (PR#13683) Reducing the upgrade cost |
[Freeciv-Dev] (PR#13683) Reducing the upgrade cost[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=13683 > Hi Here is the patch that reduces the upgrade cost. An extensive discussion of this topic with ideas can be found in the Wishlist section of the FreeCiv forum, "Reducing upgrade cost" thread. Here is a summary of the patch: - three new flags FT_UPGRADE_BONUS1 ... FT_UPGRADE_BONUS3 have been introduced, each of which reduces the upgrade cost by 10% - it is possible to specify a technology, which reduces the cost, by putting "Upgrade_Bonus1" ... "Upgrade_Bonus1" flags in techs.ruleset file - a new implementation of the unit_upgrade_price() function checks for these flags and makes the appropriate calculations There are a patch and a sample ruleset in the attachment. I have decided to put these flags into the following technologies: Invention (cause it provides Leonardo's workshop), Industrialization, Mass Production. TODO: - upgrade bonus based on wonders - upgrade bonus based on improvements in a city Sincerely, Sayenko Alexander
upgrade_cost.diff
techs.ruleset
|