Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2000:
[Freeciv-Dev] Re: More on (un)happiness
Home

[Freeciv-Dev] Re: More on (un)happiness

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: More on (un)happiness
From: "Mike Jing" <miky40@xxxxxxxxxxx>
Date: Fri, 22 Dec 2000 18:02:32 -0500
Reply-to: mike_jing@xxxxxxxxx

Andrew McGuinness <andrew_mcguinness@xxxxxxxxxxx> wrote:

I started thinking about implementing this today. (It was I who suggested it a day or two ago)

Yep. It is an excellent idea. And I am in the middle of coding it right now. For the most part, it is pretty straightforward. The only peoblem is to make the AI understand it. Maybe it will lead me to actually read that part of the code. But the main concern is for multiplayer right now. We will get back to the AI later. Someday.

I was thinking in terms of leaving the "foodbox" server variable, and
adding game.ruleset parameters food_ini and food_inc, to get
(( food_ini + ((citysize*food_inc) / 16)) * foodbox )

This leaves the foodbox variable controllable from the client to tweak the overall speed, while allowing changes to the way in which food varies with city size from the ruleset where "larger" game changes are.

That's exactly what I am doing.  :-)

The 16 constant would allow values of, say, food_ini=2, food_inc=8,
foodbox=10, to make the food needed grow half as fast against city size.

I am thinking more of 100, so that food_inc works like a percentage. It is earier to understand that way. There is the danger of roundoff error so you do have to choose its value carefully, but that's true anyway.

Of course, if you implement it, do it how you like, I am just putting
down what my thinking was.

Thanks for the input.  It looks like we are in agreement on this one.

Mike

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com




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