[Freeciv-Dev] Using tax rates
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
I've been working on extending Xconq to handle Civ-type games, and
have some good luck building on work by Hans Ronne from a while ago.
One of things I've had to do was work out the trade -> tax/lux/science
conversion, the problem being how to "fairly" divide up small amounts
by percentage. My first attempt at this didn't work very well, so I
cheated :-) and looked at freeciv sources, and found a really
interesting algorithm in cityturn.c:set_tax_income. It seems to work,
but there is no explanation of how/why, and I must confess that it has
me stumped.
Is there some kind soul out there who understands freeciv's trade
conversion algorithm and can explain it? Thanks!
Stan Shebs
shebs@xxxxxxxxxx
- [Freeciv-Dev] Using tax rates,
Stan Shebs <=
|
|