mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-02 12:24:15 +07:00
Fixed tests
This commit is contained in:
parent
60f0724b42
commit
24f3e784fa
@ -188,10 +188,17 @@ enum class UniqueParameterType(val parameterName:String) {
|
||||
},
|
||||
BeliefTypeName("beliefType") {
|
||||
override fun getErrorSeverity(parameterText: String, ruleset: Ruleset):
|
||||
UniqueType.UniqueComplianceErrorSeverity? = when (parameterText) {
|
||||
in BeliefType.values().map { it.name } -> null
|
||||
else -> UniqueType.UniqueComplianceErrorSeverity.RulesetInvariant
|
||||
}
|
||||
UniqueType.UniqueComplianceErrorSeverity? = when (parameterText) {
|
||||
in BeliefType.values().map { it.name } -> null
|
||||
else -> UniqueType.UniqueComplianceErrorSeverity.RulesetInvariant
|
||||
}
|
||||
},
|
||||
Belief("belief") {
|
||||
override fun getErrorSeverity(parameterText: String, ruleset: Ruleset):
|
||||
UniqueType.UniqueComplianceErrorSeverity? = when (parameterText) {
|
||||
in ruleset.beliefs -> null
|
||||
else -> UniqueType.UniqueComplianceErrorSeverity.RulesetSpecific
|
||||
}
|
||||
},
|
||||
FoundingOrEnhancing("foundingOrEnhancing") {
|
||||
private val knownValues = setOf("founding", "enhancing")
|
||||
|
@ -76,7 +76,7 @@ enum class UniqueType(val text:String, vararg targets: UniqueTarget) {
|
||||
StatsSpendingGreatPeople("[stats] whenever a Great Person is expended", UniqueTarget.Global),
|
||||
StatsFromTiles("[stats] from [tileFilter] tiles [cityFilter]", UniqueTarget.Global),
|
||||
// This is a doozy
|
||||
StatsFromObject("[stats] from every [tileFilter/specialist/buildingNam]", UniqueTarget.Global),
|
||||
StatsFromObject("[stats] from every [tileFilter/specialist/buildingName/belief]", UniqueTarget.Global),
|
||||
|
||||
StatPercentBonus("[amount]% [stat]", UniqueTarget.Global),
|
||||
BonusStatsFromCityStates("[amount]% [stat] from City-States", UniqueTarget.Global),
|
||||
|
Loading…
Reference in New Issue
Block a user