Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2001:
[Freeciv-Dev] Re: Bug/PATCH: Fortresses can be built in cities (PR#662)
Home

[Freeciv-Dev] Re: Bug/PATCH: Fortresses can be built in cities (PR#662)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Freeciv dev <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: Bug/PATCH: Fortresses can be built in cities (PR#662)
From: "R. Miller" <richere@xxxxxxxxxxxx>
Date: Tue, 30 Jan 2001 11:48:29 -0500

At 07:58 01-01-22 -0500, Greg Wooledge wrote:
Marko Lindqvist (caz@xxxxxxxxx) wrote:

> > > BTW, fortifying inside a city has no effect either:
> > >
> > > 504 if ((defender->activity == ACTIVITY_FORTIFIED ||
> > > 505      map_get_city(defender->x, defender->y)) &&
> > > 506     is_ground_unit(defender))
> > > 507   defensepower*=1.5;
>
>  It's even documentet feature. From Help->Combat:
>
>  - Finally, if the defender is a ground unit, and is either
>                                                      ^^^^^^
>    fortified or inside a city, its strength is multiplied by 1.5.
>    ^^^^^^^^^^^^^^^^^^^^^^^^^^

It should be noted that the help text was written that way because it
was taken directly from the behavior of the source code.  The help text
wasn't a design specification -- it's a simple C-to-English translation
of the game code.  (I know this, because I wrote that text.)

I wish I knew the exact formula for defense strength in Civ2 -- but
I don't.

Does this look at all like what you need?

"The following equation is used to decide the outcome od combat between two units:

attacker's Attack Factor / ( (attacker's Attack Factor) + (defender's Defense Factor) )
...
        ( in the text, a table of "Attack and Defense Factor Bonuses" follows)
...
Note: Defense bonuses are cumulative. Each defensive bonus is calculated using the unit's base Defense Factor."

        (Sid Meier's Civilization II - The Official Strategy Guide)


The bonuses are then all added up, and the result is then rounded down.

I hope that is useful,

Robaire


Note : Defense bonuses are cumulative







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