Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2004:
[Freeciv-Dev] (PR#7239) buildbox server variable, for accelerated produc
Home

[Freeciv-Dev] (PR#7239) buildbox server variable, for accelerated produc

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#7239) buildbox server variable, for accelerated production
From: "James Canete" <use_less@xxxxxxxxxxx>
Date: Tue, 13 Jan 2004 20:05:17 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=7239 >

This patch implements accelerated/decelerated production.

I added a new server variable called buildbox, which is roughly
analogous to the foodbox variable, only for shields.  I then changed the
ruleset parsing code so it divided each build_cost value read by 10.  I
then changed the unit_build_value, unit_buy_value(),
unit_disband_value(), improvement_build_value(),
improvement_buy_value(), and improvement_sell_value() to match the new
values, multiplying by buildbox when necessary.

Perhaps buildbox is a bad term to use.  There is also the possibility to
extend this patch for build_cost to gold value, but what would that be
called?  Goldbox?

It is dependent on PR#7236.

I only did some minor testing on the win32 client, and it seemed ok, but
there could be some errors I missed, and there are almost certainly
errors in the other clients :)

Attachment: buildbox.diff
Description: Binary data


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#7239) buildbox server variable, for accelerated production, James Canete <=