Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2004:
[Freeciv-Dev] (PR#10109) Add Eiffel tower
Home

[Freeciv-Dev] (PR#10109) Add Eiffel tower

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: per@xxxxxxxxxxx
Subject: [Freeciv-Dev] (PR#10109) Add Eiffel tower
From: "Mateusz Stefek" <mstefek@xxxxxxxxx>
Date: Mon, 20 Sep 2004 08:05:27 -0700
Reply-to: rt@xxxxxxxxxxx

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

> [per - Mon Sep 20 13:31:15 2004]:
> 
> On Sun, 19 Sep 2004, Mateusz Stefek wrote:
> > Here's my proposition
> > I added support for amount into aicity and changed the amounts to be
> > permilles of MAX_AI_LOVE/GAME_MAX_REPUTATION
> 
> I think percentages is better. Then the effects should have _PCT added to
> their names.

Reputation is increased by 2/1000 of GAME_MAX_REPUTATION per turn.
Permilles are really needed
 
> +         case EFT_GAIN_AI_LOVE:
> +            players_iterate(aplayer) {
> +              if (aplayer->ai.control) {
> +                if (ai_handicap(pplayer, H_DEFENSIVE)) {
> +                  v += amount / 10;
> +                } else {
> +                  v += amount / 20;
> +                }
> +              }
> +            } players_iterate_end;
> 
> This will be v+=2 for easy and v+=1 for hard... less than
> capitalization...

But for 30 players it will be worth 29
--
mateusz


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