mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-10 23:37:31 +07:00
fix: display "null" text on battleTable if the policy branch autocracy completely (#7843)
This commit is contained in:
parent
72d0f2b6b7
commit
77a1f4a6c1
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user