Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2003:
[Freeciv-Dev] (PR#2581) Layers Patch
Home

[Freeciv-Dev] (PR#2581) Layers Patch

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: raahul_da_man@xxxxxxxxx
Subject: [Freeciv-Dev] (PR#2581) Layers Patch
From: "Gregory Berkolaiko" <Gregory.Berkolaiko@xxxxxxxxxxxx>
Date: Fri, 9 May 2003 10:35:01 -0700
Reply-to: rt@xxxxxxxxxxxxxx

Just trying to re-start the discussion on this.

[raahul_da_man@xxxxxxxxx - Sun Dec 15 12:02:07 2002]:

> This is the layers patch. It implements layered combat, which is
> controlled by
> the option in game.ruleset. The option layered_combat is binary.
> 
> Layered combat means two things: Killstack effect, and killing of all
> units of
> the same layer type as the defending unit that got killed. (Layer is
> Sea, Air,
> Ground).
> 
> All attacking units have a layer effect. They belong to a layer, Air
> Sea Land,
> and when attacking a stack destroy first units of the same layer as
> themselves.
> 
> When a defending unit loses, all units of the same layer die.
> 
> Example:
> 
> Fighter unit attacks stack of mech inf and bombers. Current Freeciv
> method is
> to pick best defender, and all units in the tile die when the defender
> dies.
> 
> Layer method:
> 
> Fighter attacks stack of mech inf and bomber. Bomber defends first!
> Air units
> must defend against other air unit attackers if they are present.
> Ground unit
> vs ground attacker, sea vs sea etc. The best defender is not
> necessarily
> picked.

For that you need to change get_defender too, which is not done, AFAICS

> If the bomber dies, only the air units in the tile dies. The mech inf
> lives to
> fight again.
> 
> Note: Layer effect currently only applies to units outside
> city/fortress or
> airbase. If preferred, I can modify the layers patch to affect cities
> as well.



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