Skip to content
Permalink
Browse files

webperimental: introduce oceanic Leader unit.

Make the Leader unit able to convert to the new oceanic "Leader Yacht" unit
type (and vice versa.) This allows the Leader to move on shallow water
without being transported.

This can be used as a last desperate means of escape from a land only attack.
The main reasons for introducing it is to allow the player to trade the risk
of game loss by having his Leader killed for early game exploration before a
Trireme can be built. (Planned future patches will extend the benefits of the
risk beyond exploration.)

See hrm Feature #750031
  • Loading branch information...
kvilhaugsvik committed Apr 25, 2018
1 parent 431e679 commit f3d4c12bbb3ef6a382ecdaa3e216abad33bb7fe7
Showing with 66 additions and 0 deletions.
  1. +3 −0 data/webperimental/README.webperimental
  2. +21 −0 data/webperimental/game.ruleset
  3. +42 −0 data/webperimental/units.ruleset
@@ -36,6 +36,9 @@ Differences compared to the classic ruleset are:
and some of his knowledge. Not all his cities will follow you. Some will
rather turn barbarian.
- The Leader can heal light weight units belonging to you or to your allies.
- The Leader can move on shallow water without being transported by becoming
a "Leader Yacht". Conversion back and forth can be done inside a city once
Map Making has been discovered.
- Labels the year using AD/BC.
- All units can be airlifted:
- Light weight units can be airlifted once Flight is known.
@@ -254,6 +254,9 @@ ui_name_bribe_unit = _("%sBribe Enemy Unit%s")
; /* TRANS: _Use Court Physician (3% chance of success). */
ui_name_heal_unit = _("%sUse Court Physician%s")

; /* TRANS: _Deploy (3% chance of success). */
ui_name_convert_unit = _("%sDeploy%s")

; /* TRANS: _Sabotage City (3% chance of success). */
ui_name_sabotage_city = _("%sSabotage City%s")

@@ -814,6 +817,24 @@ target_reqs =
"UnitFlag", "LightWeight", "Local", TRUE
}

[actionenabler_convert_to_leader_yatch]
action = "Convert Unit"
actor_reqs =
{ "type", "name", "range"
"UnitFlag", "GameLoss", "Local"
"CityTile", "Center", "Local"
"Tech", "Map Making", "Player"
}

; It is always legal to convert back again.
[actionenabler_convert_from_leader_yatch]
action = "Convert Unit"
actor_reqs =
{ "type", "name", "range"
"UnitType", "Leader Yacht", "Local"
"CityTile", "Center", "Local"
}

[actionenabler_border_police]
action = "Expel Unit"
actor_reqs =
@@ -2307,6 +2307,7 @@ hitpoints = 20
firepower = 1
move_rate = 2
vision_radius_sq = 8
convert_to = "Leader Yacht"
transport_cap = 0
fuel = 0
uk_happy = 0
@@ -2337,6 +2338,47 @@ The Leader unit includes a court physician.\
All the Leader's remaining movement points are spent.\
The unit being healed must be allied or domestic.\
It must be located at or adjacent to the Leader's tile.\
"), _("\
Can be converted to a Leader Yacht by performing the 'Deploy' action\
inside a city once Map Making has been discovered.\
")

[unit_yacht]
; /* TRANS: unit type */
name = _("?unit:Leader Yacht")
class = "Trireme"
tech_req = "None"
obsolete_by = "None"
graphic = "u.leader_boat"
graphic_alt = "u.leader"
sound_move = "m_leader_boat"
sound_move_alt = "m_trireme"
sound_fight = "f_leader_boat"
sound_fight_alt = "f_generic"
build_cost = 10
pop_cost = 0
attack = 0
defense = 2
hitpoints = 15
firepower = 1
move_rate = 2
vision_radius_sq = 8
convert_to = "Leader"
transport_cap = 0
fuel = 0
uk_happy = 0
uk_shield = 0
uk_food = 0
uk_gold = 0
flags = "IgZOC", "NonMil", "HasNoZOC", "NoBuild", "NoHome", "SuperSpy",
"EvacuateFirst", "Unbribable", "GameLoss", "Unique",
"Provoking", "MediumWeight"
roles = ""
helptext = _("\
This is you. If you lose this unit, you lose the game. So don't.\
"), _("\
Can be converted to a Leader by performing the 'Deploy' action inside a\
city.\
")

[unit_barbarian_leader]

0 comments on commit f3d4c12

Please sign in to comment.
You can’t perform that action at this time.