Deprecation of Building.xpForNewUnits, in favor of an existing unique :)

This commit is contained in:
Yair Morgenstern 2021-07-27 03:45:49 +03:00
parent eae17b67b4
commit 4479103ccc
2 changed files with 7 additions and 7 deletions

View File

@ -161,19 +161,19 @@
}, },
{ {
"name": "Barracks", "name": "Barracks",
"xpForNewUnits": 15,
"hurryCostModifier": 25, "hurryCostModifier": 25,
"maintenance": 1, "maintenance": 1,
"uniques": ["New [Military] units start with [15] Experience [in this city]"]
"requiredTech": "Bronze Working" "requiredTech": "Bronze Working"
}, },
{ {
"name": "Krepost", "name": "Krepost",
"replaces": "Barracks", "replaces": "Barracks",
"uniqueTo": "Russia", "uniqueTo": "Russia",
"xpForNewUnits": 15,
"hurryCostModifier": 25, "hurryCostModifier": 25,
"maintenance": 1, "maintenance": 1,
"uniques": ["-[25]% Culture cost of acquiring tiles [in this city]","-[25]% Gold cost of acquiring tiles [in this city]"], "uniques": ["-[25]% Culture cost of acquiring tiles [in this city]","-[25]% Gold cost of acquiring tiles [in this city]",
"New [Military] units start with [15] Experience [in this city]"],
"requiredTech": "Bronze Working" "requiredTech": "Bronze Working"
}, },
{ {
@ -625,10 +625,10 @@
}, },
{ {
"name": "Armory", "name": "Armory",
"xpForNewUnits": 15,
"hurryCostModifier": 25, "hurryCostModifier": 25,
"maintenance": 1, "maintenance": 1,
"requiredBuilding": "Barracks", "requiredBuilding": "Barracks",
"uniques": ["New [Military] units start with [15] Experience [in this city]"]
"requiredTech": "Steel" "requiredTech": "Steel"
}, },
@ -853,19 +853,18 @@
}, },
{ {
"name": "Military Academy", "name": "Military Academy",
"xpForNewUnits": 15,
"hurryCostModifier": 0, "hurryCostModifier": 0,
"maintenance": 1, "maintenance": 1,
"requiredBuilding": "Armory", "requiredBuilding": "Armory",
"uniques": ["New [Military] units start with [15] Experience [in this city]"],
"requiredTech": "Military Science" "requiredTech": "Military Science"
}, },
{ {
"name": "Brandenburg Gate", "name": "Brandenburg Gate",
"culture": 3, "culture": 3,
"xpForNewUnits": 15,
"greatPersonPoints": {"Great Scientist": 2}, "greatPersonPoints": {"Great Scientist": 2},
"isWonder": true, "isWonder": true,
"uniques": ["Free [Great General] appears"], "uniques": ["Free [Great General] appears", "New [Military] units start with [15] Experience [in this city]"],
"requiredTech": "Military Science", "requiredTech": "Military Science",
"quote": "'Pale Death beats equally at the poor man's gate and at the palaces of kings.' - Horace" "quote": "'Pale Death beats equally at the poor man's gate and at the palaces of kings.' - Horace"
}, },

View File

@ -59,6 +59,7 @@ class Building : NamedStats(), IConstruction, ICivilopediaText {
private var cannotBeBuiltWith: String? = null private var cannotBeBuiltWith: String? = null
var cityStrength = 0 var cityStrength = 0
var cityHealth = 0 var cityHealth = 0
@Deprecated("As of 3.15.16, replace with 'New [Military] units start with [15] Experience [in this city]'")
var xpForNewUnits = 0 var xpForNewUnits = 0
var replaces: String? = null var replaces: String? = null
var uniqueTo: String? = null var uniqueTo: String? = null