fix: display "null" text on battleTable if the policy branch autocracy completely (#7843)

This commit is contained in:
nacro711072 2022-09-22 17:48:18 +08:00 committed by GitHub
parent 72d0f2b6b7
commit 77a1f4a6c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -314,13 +314,18 @@ class TemporaryUnique() : IsPartOfGameInfoSerialization {
constructor(uniqueObject: Unique, turns: Int) : this() {
unique = uniqueObject.text
sourceObjectType = uniqueObject.sourceObjectType
sourceObjectName = uniqueObject.sourceObjectName
turnsLeft = turns
}
var unique: String = ""
var sourceObjectType: UniqueTarget? = null
var sourceObjectName: String? = null
@delegate:Transient
val uniqueObject: Unique by lazy { Unique(unique) }
val uniqueObject: Unique by lazy { Unique(unique, sourceObjectType, sourceObjectName) }
var turnsLeft: Int = 0
}