Project

General

Profile

Feature #191 » 0028-Granularity-Enable-Conquer-City-action.patch

S3_2 - Marko Lindqvist, 01/19/2024 10:45 PM

View differences:

data/classic/actions.ruleset
}
[actionenabler_explode_missile]
action = "Suicide Attack"
action = "Suicide Attack"
actor_reqs =
{ "type", "name", "range", "present"
"UnitFlag", "NonMil", "Local", FALSE
......
}
[actionenabler_conquer_city_native]
action = "Conquer City"
action = "Conquer City"
actor_reqs =
{ "type", "name", "range", "present"
"UnitClassFlag", "CanOccupyCity", "Local", TRUE
data/granularity/actions.ruleset
; "Collect Ransom", "Attack", "Suicide Attack"
[actions]
; Forbid "Conquer City" if any one of the listed actions are legal.
conquer_city_blocked_by = "Attack"
; Forbid regular unit move if one of the actions below is legal.
move_blocked_by = "Transport Disembark", "Transport Disembark 2"
......
; /* TRANS: _Fortify (100% chance of success). */
ui_name_fortify = _("%sFortify%s")
; /* TRANS: _Conquer City (100% chance of success). */
ui_name_conquer_city = _("%sConquer City%s")
; Blank ruleset defined user actions.
; See the section "Ruleset defined actions" in doc/README.actions
; Example: set up "User Action 1"
......
"Tech", "Trenches", "Player", TRUE
"Activity", "Fortified", "Local", FALSE
}
[actionenabler_conquer_city]
action = "Conquer City"
actor_reqs =
{ "type", "name", "range", "present"
"UnitClassFlag", "CanOccupyCity", "Local", TRUE
"UnitFlag", "NonMil", "Local", FALSE
"DiplRel", "War", "Local", TRUE
"MinMoveFrags", "1", "Local", TRUE
}
target_reqs =
{ "type", "name", "range", "present"
"MaxUnitsOnTile", "0", "Tile", TRUE
}
data/granularity/units.ruleset
name = _("Land")
min_speed = 5
hp_loss_pct = 0
flags = "TerrainSpeed", "NonNatBombardTgt"
flags = "TerrainSpeed", "NonNatBombardTgt", "CanOccupyCity"
[unitclass_sea]
name = _("Sea")
(2-2/2)