Merge pull request #1903 from JackRainy/ForgeAndSpacePart

Forge increases production of the space parts (#1902)
This commit is contained in:
Yair Morgenstern 2020-02-12 23:17:39 +02:00 committed by GitHub
commit 3bfb2a29b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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%"))