Resolved #12612 - Display city state type name for battle bonuses
Some checks failed
Conflict marking / main (push) Failing after 6s
Detekt / detekt (ubuntu-latest) (push) Failing after 40s
Generate mkdocs from docs folder / deploy (push) Failing after 23s
Build and test / Check code and run unit tests (push) Failing after 56m5s
Close stale issues and PRs / stale (push) Successful in 17s
Docker / build (push) Failing after 52s

This commit is contained in:
yairm210 2024-12-08 10:46:52 +02:00
parent 43f8ba47a4
commit 6a63b6fe31

View File

@ -14,7 +14,7 @@ class CityStateType: INamed {
var allyBonusUniques = ArrayList<String>()
val allyBonusUniqueMap by lazy { allyBonusUniques.toUniqueMap() }
private fun ArrayList<String>.toUniqueMap() =
UniqueMap(asSequence().map { Unique(it, sourceObjectType = UniqueTarget.CityState) })
UniqueMap(asSequence().map { Unique(it, sourceObjectType = UniqueTarget.CityState, sourceObjectName = name) })
var color: List<Int> = listOf(255,255,255)
private val colorObject by lazy { colorFromRGB(color) }