Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2005:
[Freeciv-Dev] Re: (PR#12833) consider_settler_action simplification (rev
Home

[Freeciv-Dev] Re: (PR#12833) consider_settler_action simplification (rev

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: bdunstan149@xxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#12833) consider_settler_action simplification (rev.)
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 18 Apr 2005 19:14:50 -0700
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=12833 >

Brian Dunstan wrote:

> ====================
> I think this would suffice:
> ===================
> 
> if (consider) {
>     base_value = 
>       MAX(0, new_tile_value - old_tile_value);
> 
>     discount_value = amortize(base_value, delay);
>     total_value = MAX(0, discount_value);
> 
>   } else {
>     total_value = 0;
>   }

What happened to 'extra'?

It's a hack but without the extra consideration given to some
improvements (roads, pollution cleanup) the AI doesn't give it nearly
enough importance.

The "extra" values correspond to the XXX_WEIGHTING values on some sort
of absolute scale.  That is, an 'extra' of 50 (a common value) is as
good as +3 food.  So there is some logic here.

-jason





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