Summary: Wish - Train unit class.
                 Project: Freeciv
            Submitted by: None
            Submitted on: Tue Dec 20 01:19:59 2011
                Category: rulesets
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 



I would like it to be possible to create trains. These would be native to
railroad terrain. The point is to remove the infinite and unlimited movement
land units currently gain on rails.

To create such a unit in the units.ruleset two changes will be necessary.

The flag MOVE_COST_RAIL is currently hardcoded at 0 in the file movement.h I
would like to be able to set this value in a ruleset.

A new unitclass - trains can only move on rails.

; /* TRANS: Unit class: used adjectivally */
name          = _("?unitclass:train")
move_type     = "Rail"
min_speed     = 1
hp_loss_pct   = 0
flags         = "TerrainSpeed", "DamageSlows", "CanOccupyCity",
                "CollectRansom", "ZOC", "CanFortify", "CanPillage",



Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to