mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-14 09:48:12 +07:00
fix: display "null" text on battleTable if the policy branch autocracy completely (#7843)
This commit is contained in:
@ -314,13 +314,18 @@ class TemporaryUnique() : IsPartOfGameInfoSerialization {
|
|||||||
|
|
||||||
constructor(uniqueObject: Unique, turns: Int) : this() {
|
constructor(uniqueObject: Unique, turns: Int) : this() {
|
||||||
unique = uniqueObject.text
|
unique = uniqueObject.text
|
||||||
|
sourceObjectType = uniqueObject.sourceObjectType
|
||||||
|
sourceObjectName = uniqueObject.sourceObjectName
|
||||||
turnsLeft = turns
|
turnsLeft = turns
|
||||||
}
|
}
|
||||||
|
|
||||||
var unique: String = ""
|
var unique: String = ""
|
||||||
|
|
||||||
|
var sourceObjectType: UniqueTarget? = null
|
||||||
|
var sourceObjectName: String? = null
|
||||||
|
|
||||||
@delegate:Transient
|
@delegate:Transient
|
||||||
val uniqueObject: Unique by lazy { Unique(unique) }
|
val uniqueObject: Unique by lazy { Unique(unique, sourceObjectType, sourceObjectName) }
|
||||||
|
|
||||||
var turnsLeft: Int = 0
|
var turnsLeft: Int = 0
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user