Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2002:
[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: undisclosed-recipients:;
Subject: [Freeciv-Dev] (PR#2581) Layers Patch
From: "Raahul Kumar via RT" <rt@xxxxxxxxxxxxxx>
Date: Sun, 15 Dec 2002 04:02:09 -0800
Reply-to: rt@xxxxxxxxxxxxxx

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.

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. 

I will not be available for any replies starting from 8:00 tomorrow. I will be
replying to emails after New Year, so Per, if you or Greg want to make minor
changes and commit the patch, go ahead. I'd prefer if you waited until I'm back
online, but use your own judgement. 

This applies only to Per and Greg. No other maintainer has my permission to
make changes to my patch. 

Aloha,
RK.

We seem to have a compulsion these days to bury time capsules in order to give 
those people living in the next century or so some idea of what we are like. 
I have prepared one of my own. I have placed some rather large samples of
dynamite, gunpowder, and nitroglycerin. My time capsule is set to go off in the
year 3000.

It will show them what we are really like. -Alfred Hitchcock


__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com

Attachment: layer3.diff
Description: layer3.diff


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#2581) Layers Patch, Raahul Kumar via RT <=