Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2000:
[Freeciv-Dev] patch: split up F_SUBMARINE (PR#347)

[Freeciv-Dev] patch: split up F_SUBMARINE (PR#347)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Cc: bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] patch: split up F_SUBMARINE (PR#347)
From: David Pfitzner <dwp@xxxxxxxxxxxxxx>
Date: Mon, 24 Apr 2000 05:06:50 -0700 (PDT)

The unit flag F_SUBMARINE currently incorporates several effects.
For alternate rulesets it may be useful to have these effects
separately, so this patch splits F_SUBMARINE into:

  F_SUBMARINE_INVIS - invisibility effect (usefulness reduced by fog, 
                but still some effect vs cities and visibility-2 units);
  F_MISSILE_CARRIER - transport_capacity is for F_MISSILE units only;
  F_NO_LAND_ATTACK  - cannot attack vs land (no shore bombardment).

This patch makes a reasonable attempt at backward compatibility 
(non-mandatory cap str) including reading old ruleset files.  
(It fails (only in minor ways?) for non-standard rulesets using 
new flags above -- too bad, we'll probably have another +cap
soon enough anyway.)

-- David

Attachment: submarine_flags.diff.gz
Description: GNU Zip compressed data

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