URL:
http://gna.org/patch/?3077
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:
___
Details:
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.
[unitclass_train]
; /* TRANS: Unit class: used adjectivally */
name = _(?unitclass:train)
move_type = Rail
min_speed = 1
hp_loss_pct = 0
flags = TerrainSpeed, DamageSlows, CanOccupyCity,
BuildAnywhere,
CollectRansom, ZOC, CanFortify, CanPillage,
TerrainDefense
___
Reply to this item at:
http://gna.org/patch/?3077
___
Message sent via/by Gna!
http://gna.org/
___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev