Forge increases production of spaceparts

This commit is contained in:
JackRainy 2020-02-12 23:11:28 +02:00
parent 5b845abc04
commit 4ab084feeb
No known key found for this signature in database
GPG key ID: 855B30F50E6256E7
4 changed files with 6 additions and 1 deletions

View file

@ -411,7 +411,7 @@
"requiredNearbyImprovedResources": ["Iron"],
"resourceBonusStats": {"production": 1},
"requiredTech": "Metal Casting",
"uniques": ["+15% production of land units"]
"uniques": ["+15% production of land units", "Increases production of spaceship parts by 15%"]
},
{
"name": "Harbor",

View file

@ -230,6 +230,8 @@ Longhouse =
Forge =
# Requires translation!
+15% production of land units =
# Requires translation!
Increases production of spaceship parts by 15% = Increases production of spaceship parts by 15%
# Requires translation!
Harbor =

View file

@ -134,6 +134,7 @@ Longhouse =
Forge =
+15% production of land units =
Increases production of spaceship parts by 15% =
Harbor =
+1 production from all sea resources worked by the city =

View file

@ -296,6 +296,8 @@ class CityStats {
stats.culture += 25f
if (currentConstruction is Building && currentConstruction.uniques.contains("Spaceship part")) {
if (cityInfo.containsBuildingUnique("Increases production of spaceship parts by 15%"))
stats.production += 15
if (cityInfo.civInfo.containsBuildingUnique("Increases production of spaceship parts by 25%"))
stats.production += 25
if (cityInfo.containsBuildingUnique("Increases production of spaceship parts by 50%"))