mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-24 03:53:12 -04:00
Modding: Resolved #12798 - unitFilters now catch status names properly
This commit is contained in:
parent
4919368c17
commit
5a7813b5bd
@ -586,7 +586,7 @@ class MapUnit : IsPartOfGameInfoSerialization {
|
||||
if (promotions.promotions.contains(filter)) return true
|
||||
// Badly optimized, but it's rare that statuses is even non-empty
|
||||
// Statuses really should be converted to a hashmap
|
||||
if (hasStatus(name)) return true
|
||||
if (hasStatus(filter)) return true
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
@ -2878,17 +2878,17 @@ Simple unique parameters are explained by mouseover. Complex parameters are expl
|
||||
??? example "<if no other Civilization has researched this>"
|
||||
Applicable to: Conditional
|
||||
|
||||
??? example "<after discovering [tech]>"
|
||||
??? example "<after discovering [techFilter]>"
|
||||
Example: "<after discovering [Agriculture]>"
|
||||
|
||||
Applicable to: Conditional
|
||||
|
||||
??? example "<before discovering [tech]>"
|
||||
??? example "<before discovering [techFilter]>"
|
||||
Example: "<before discovering [Agriculture]>"
|
||||
|
||||
Applicable to: Conditional
|
||||
|
||||
??? example "<while researching [tech]>"
|
||||
??? example "<while researching [techFilter]>"
|
||||
This condition is fulfilled while the technology is actively being researched (it is the one research points are added to)
|
||||
Example: "<while researching [Agriculture]>"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user