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

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

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] Re: (PR#10109) Add Eiffel tower
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Mon, 20 Sep 2004 06:31:16 -0700
Reply-to: rt@xxxxxxxxxxx

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

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.

+         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...

  - Per




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