Complete.Org: Mailing Lists: Archives: freeciv-dev: June 2005:
[Freeciv-Dev] Re: (PR#13355) Percent defense bonus
Home

[Freeciv-Dev] Re: (PR#13355) Percent defense bonus

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: use_less@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#13355) Percent defense bonus
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 27 Jun 2005 19:11:54 -0700
Reply-to: bugs@xxxxxxxxxxx

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

James Canete wrote:

> This patch compiles, but has not yet been tested.

The combat.c parts look wrong:


-  db = get_tile_type(t)->defense_bonus;
+  db = 10 + get_tile_type(t)->defense_bonus / 10;

this should be 100 right?

Also, if it does stay as a multiplier it should be called
defense_multiplier not defense_bonus.

Finally, the whole thing could be done with effects.  It would be much
slower though.

-jason





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