Attempt to define a cattle herd unit

This commit is contained in:
2026-02-21 18:32:42 +01:00
parent bf71bb4400
commit ecd2d50f44
3 changed files with 72 additions and 8 deletions
+42
View File
@@ -59,6 +59,8 @@ class_flags =
_("AttFromNonNative"), _("Can launch attack from non-native tiles.")
_("Missile")
_("CanPillage")
_("CanGraze"), _("Can graze the land to reproduce.")
_("CanSpawnWarrior"), _("Can spawn a warrior at the cost of some health.")
_("CanFortify"),
; /* xgettext:no-c-format */
_("Gets a 50% defensive bonus while in cities.")
@@ -164,6 +166,13 @@ flags = "TerrainSpeed", "DamageSlows", "CanOccupyCity", "BuildAnywhere",
"TerrainDefense", "Airliftable", "NonNatBombardTgt",
"Barracks", "Ground"
[unitclass_herd]
; /* TRANS: Unit class: used adjectivally */
name =_("?unitclass:Herd")
min_speed = 1
hp_loss_pct = 0
flags = "CanGraze", "CanSpawnWarrior", "Ground"
[unitclass_land_small]
; /* TRANS: Unit class: used adjectivally */
name = _("?unitclass:Small Land")
@@ -662,6 +671,39 @@ sufficient existing land). See the Terrain Alterations section \
for more details.\
")
[unit_cattle_herd]
name = _("Cattle herd")
class = "Herd"
;reqs
obsolete_by = "None"
graphic = "u.cattle_herd"
graphic_alt = "-"
sound_move = "m_cattle_herd"
sound_move_alt = "m_generic"
sound_fight = "f_generic"
sound_fight_alt = "f_generic"
build_cost = 10
pop_cost = 1
attack = 0
defense = 1
hitpoints = 50
firepower = 0
move_rate = 1
vision_radius_sq = 2
transport_cap = 0
fuel = 2 ; Fuel is actually grass
uk_happy = 1
uk_shield = 1
uk_food = 1
uk_gold = 1
tp_defense = "Blocked"
flags = "Herd"
roles = ""
helptext = _("\
A herd of cattle, the cornerstone of nomadic empires.\
")
[unit_warriors]
name = _("Warriors")
class = "Land"