mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-08 14:57:58 +07:00
chore: Added explicit unit consumption to Settlers' Found City unique
This commit is contained in:
@ -15,7 +15,7 @@
|
||||
"unitType": "Civilian",
|
||||
"movement": 2,
|
||||
"cost": 106,
|
||||
"uniques": ["Founds a new city", "Excess Food converted to Production when under construction",
|
||||
"uniques": ["Founds a new city <by consuming this unit>", "Excess Food converted to Production when under construction",
|
||||
"Requires at least [2] population"],
|
||||
"hurryCostModifier": 20
|
||||
},
|
||||
|
@ -15,7 +15,7 @@
|
||||
"unitType": "Civilian",
|
||||
"movement": 2,
|
||||
"cost": 106,
|
||||
"uniques": ["Founds a new city", "Excess Food converted to Production when under construction",
|
||||
"uniques": ["Founds a new city <by consuming this unit>", "Excess Food converted to Production when under construction",
|
||||
"Requires at least [2] population"],
|
||||
"hurryCostModifier": 20
|
||||
},
|
||||
|
@ -132,7 +132,7 @@ class RulesetValidator(val ruleset: Ruleset) {
|
||||
val vanillaRuleset = RulesetCache.getVanillaRuleset() // for UnitTypes fallback
|
||||
|
||||
|
||||
if (ruleset.units.values.none { it.hasUnique(UniqueType.FoundCity) })
|
||||
if (ruleset.units.values.none { it.hasUnique(UniqueType.FoundCity, StateForConditionals.IgnoreConditionals) })
|
||||
lines += "No city-founding units in ruleset!"
|
||||
|
||||
for (unit in ruleset.units.values) {
|
||||
|
@ -202,6 +202,8 @@ object UnitActions {
|
||||
|
||||
return UnitAction(
|
||||
type = UnitActionType.FoundCity,
|
||||
title = if (!hasActionModifiers) UnitActionType.FoundCity.value
|
||||
else "${UnitActionType.FoundCity.value} ${getSideEffectString(unique)}",
|
||||
uncivSound = UncivSound.Chimes,
|
||||
action = {
|
||||
// check if we would be breaking a promise
|
||||
|
Reference in New Issue
Block a user