mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-25 02:16:06 +07:00
Actually no
This commit is contained in:
parent
f89c2330aa
commit
3f3235c1af
@ -305,8 +305,7 @@ class UniqueMap: HashMap<String, ArrayList<Unique>>() {
|
||||
|
||||
/** Adds one [unique] unless it has a ConditionalTimedUnique conditional */
|
||||
fun addUnique(unique: Unique) {
|
||||
if (unique.conditionals.any { it.type == UniqueType.ConditionalTimedUnique }
|
||||
&& unique.conditionals.none { it.type!!.targetTypes.contains(UniqueTarget.TriggerCondition)}) return
|
||||
if (unique.conditionals.any { it.type == UniqueType.ConditionalTimedUnique }) return
|
||||
if (!containsKey(unique.placeholderText)) this[unique.placeholderText] = ArrayList()
|
||||
this[unique.placeholderText]!!.add(unique)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user