Project

Profile

Help

HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. *Read more...*

Feature #823714 ยป 0044-Granularity-Add-Settlers-unit-type.patch

Marko Lindqvist, 2019-06-28 05:20 AM

View differences:

data/granularity/game.ruleset
; the following character as a mnemonic in its graphical toolkit.
; The second %s marks where extra details should be inserted.
; ui_name_xxx = _("%s%s")
; /* TRANS: _Build City (100% chance of success). */
ui_name_found_city = _("%sBuild City%s")
; /* <-- avoid gettext warnings
;
......
; Can make the help text less redundant when you document it your self.
;quiet_actions = "Targeted Sabotage City", "Targeted Steal Tech"
[actionenabler_found_city]
action = "Found City"
actor_reqs =
{ "type", "name", "range"
"UnitFlag", "Cities", "Local"
"UnitState", "OnLivableTile", "Local"
"MinMoveFrags", "1", "Local"
}
[borders]
; Base border radius from city.
radius_sq_city = 0
data/granularity/units.ruleset
; as part of some sentences, so try to make it descriptive
; and sensible.
; helptxt = displayed in the help for unit types with this flag (optional)
; flags =
; { "name", "helptxt"
; }
flags =
{ "name", "helptxt"
_("Cities")
}
; Names for custom unit class flags. There can be up to 8 of these.
; name = rule name; In some circumstances user may see this
......
uk_food = 0
uk_gold = 0
flags = "Settlers"
roles = "ExplorerStartUnit", "Firstbuild", "CitiesStartUnit"
roles = "ExplorerStartUnit", "Firstbuild"
helptext = _("\
This is the only land unit type you can build.\
")
[unit_settlers]
name = _("Settlers")
class = "Generic"
tech_req = "None"
obsolete_by = "None"
graphic = "u.settlers"
graphic_alt = "-"
sound_move = "m_settlers"
sound_move_alt = "m_generic"
sound_fight = "f_settlers"
sound_fight_alt = "f_generic"
build_cost = 10
pop_cost = 0
attack = 0
defense = 0
hitpoints = 10
firepower = 1
move_rate = 1
vision_radius_sq = 2
transport_cap = 0
fuel = 0
uk_happy = 0
uk_shield = 0
uk_food = 0
uk_gold = 0
flags = "Cities"
roles = "CitiesStartUnit"
helptext = _("\
Settlers can found new cities.\
")
[unit_ship]
name = _("Generic Ship")
class = "Generic Ship"
    (1-1/1)