mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 05:46:43 -04:00
Added mod check for 'provides free building' which does not exist
This commit is contained in:
parent
675e47868b
commit
a01b11484a
@ -58,7 +58,7 @@ class Building : NamedStats(), IConstruction {
|
||||
var replaces: String? = null
|
||||
var uniqueTo: String? = null
|
||||
var quote: String = ""
|
||||
private var providesFreeBuilding: String? = null
|
||||
var providesFreeBuilding: String? = null
|
||||
var uniques = ArrayList<String>()
|
||||
var replacementTextForUniques = ""
|
||||
val uniqueObjects: List<Unique> by lazy { uniques.map { Unique(it) } }
|
||||
|
@ -277,6 +277,8 @@ class Ruleset {
|
||||
lines += "${building.name} requires ${building.requiredBuilding} which does not exist!"
|
||||
if (building.requiredBuildingInAllCities != null && !buildings.containsKey(building.requiredBuildingInAllCities!!))
|
||||
lines += "${building.name} requires ${building.requiredBuildingInAllCities} in all cities which does not exist!"
|
||||
if (building.providesFreeBuilding != null && !buildings.containsKey(building.providesFreeBuilding!!))
|
||||
lines += "${building.name} provides a free ${building.providesFreeBuilding} which does not exist!"
|
||||
}
|
||||
|
||||
for (resource in tileResources.values) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user