Modding: Resolved #12798 - unitFilters now catch status names properly

This commit is contained in:
yairm210 2025-02-27 09:36:23 +02:00
parent 4919368c17
commit 5a7813b5bd
2 changed files with 4 additions and 4 deletions

View File

@ -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
}
}

View File

@ -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]>"