Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2005:
[Freeciv-Dev] (PR#13683) Reducing the upgrade cost
Home

[Freeciv-Dev] (PR#13683) Reducing the upgrade cost

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#13683) Reducing the upgrade cost
From: "Alexander Sayenko" <sayenko@xxxxxxxxx>
Date: Tue, 16 Aug 2005 01:01:56 -0700
Reply-to: bugs@xxxxxxxxxxx

<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

Attachment: upgrade_cost.diff
Description: Binary data

Attachment: techs.ruleset
Description: Binary data


[Prev in Thread] Current Thread [Next in Thread]