'cached unique' documentation is within collapsible block

This commit is contained in:
Yair Morgenstern 2024-02-25 21:25:01 +02:00
parent 8675a8a747
commit adccee0b2e
2 changed files with 17 additions and 17 deletions

View File

@ -85,7 +85,7 @@ class UniqueDocsWriter {
lines += "\tExample: \"${uniqueText.fillPlaceholders(*paramExamples)}\"\n"
}
if (uniqueType in MapUnitCache.UnitMovementUniques) {
lines += "Due to performance considerations, this unique is cached, thus conditionals may not work."
lines += "\tDue to performance considerations, this unique is cached, thus conditionals may not work."
}
lines += "\tApplicable to: " + uniqueType.allTargets().sorted().joinToString()
lines += ""

View File

@ -907,13 +907,13 @@ Simple unique parameters are explained by mouseover. Complex parameters are expl
??? example "[amount] Movement point cost to disembark"
Example: "[3] Movement point cost to disembark"
Due to performance considerations, this unique is cached, thus conditionals may not work.
Due to performance considerations, this unique is cached, thus conditionals may not work.
Applicable to: Global, Unit
??? example "[amount] Movement point cost to embark"
Example: "[3] Movement point cost to embark"
Due to performance considerations, this unique is cached, thus conditionals may not work.
Due to performance considerations, this unique is cached, thus conditionals may not work.
Applicable to: Global, Unit
## Nation uniques
@ -931,11 +931,11 @@ Due to performance considerations, this unique is cached, thus conditionals may
Applicable to: Nation
??? example "All units move through Forest and Jungle Tiles in friendly territory as if they have roads. These tiles can be used to establish City Connections upon researching the Wheel."
Due to performance considerations, this unique is cached, thus conditionals may not work.
Due to performance considerations, this unique is cached, thus conditionals may not work.
Applicable to: Nation
??? example "Units ignore terrain costs when moving into any tile with Hills"
Due to performance considerations, this unique is cached, thus conditionals may not work.
Due to performance considerations, this unique is cached, thus conditionals may not work.
Applicable to: Nation
??? example "Excluded from map editor"
@ -1409,54 +1409,54 @@ Due to performance considerations, this unique is cached, thus conditionals may
Applicable to: Unit
??? example "Cannot move"
Due to performance considerations, this unique is cached, thus conditionals may not work.
Due to performance considerations, this unique is cached, thus conditionals may not work.
Applicable to: Unit
??? example "Double movement in [terrainFilter]"
Example: "Double movement in [Fresh Water]"
Due to performance considerations, this unique is cached, thus conditionals may not work.
Due to performance considerations, this unique is cached, thus conditionals may not work.
Applicable to: Unit
??? example "All tiles cost 1 movement"
Due to performance considerations, this unique is cached, thus conditionals may not work.
Due to performance considerations, this unique is cached, thus conditionals may not work.
Applicable to: Unit
??? example "May travel on Water tiles without embarking"
Due to performance considerations, this unique is cached, thus conditionals may not work.
Due to performance considerations, this unique is cached, thus conditionals may not work.
Applicable to: Unit
??? example "Can pass through impassable tiles"
Due to performance considerations, this unique is cached, thus conditionals may not work.
Due to performance considerations, this unique is cached, thus conditionals may not work.
Applicable to: Unit
??? example "Ignores terrain cost"
Due to performance considerations, this unique is cached, thus conditionals may not work.
Due to performance considerations, this unique is cached, thus conditionals may not work.
Applicable to: Unit
??? example "Ignores Zone of Control"
Due to performance considerations, this unique is cached, thus conditionals may not work.
Due to performance considerations, this unique is cached, thus conditionals may not work.
Applicable to: Unit
??? example "Rough terrain penalty"
Due to performance considerations, this unique is cached, thus conditionals may not work.
Due to performance considerations, this unique is cached, thus conditionals may not work.
Applicable to: Unit
??? example "Can enter ice tiles"
Due to performance considerations, this unique is cached, thus conditionals may not work.
Due to performance considerations, this unique is cached, thus conditionals may not work.
Applicable to: Unit
??? example "Cannot enter ocean tiles"
Applicable to: Unit
??? example "May enter foreign tiles without open borders"
Due to performance considerations, this unique is cached, thus conditionals may not work.
Due to performance considerations, this unique is cached, thus conditionals may not work.
Applicable to: Unit
??? example "May enter foreign tiles without open borders, but loses [amount] religious strength each turn it ends there"
Example: "May enter foreign tiles without open borders, but loses [3] religious strength each turn it ends there"
Due to performance considerations, this unique is cached, thus conditionals may not work.
Due to performance considerations, this unique is cached, thus conditionals may not work.
Applicable to: Unit
??? example "Never appears as a Barbarian unit"
@ -1532,7 +1532,7 @@ Due to performance considerations, this unique is cached, thus conditionals may
??? example "Units ending their turn on this terrain take [amount] damage"
Example: "Units ending their turn on this terrain take [3] damage"
Due to performance considerations, this unique is cached, thus conditionals may not work.
Due to performance considerations, this unique is cached, thus conditionals may not work.
Applicable to: Terrain
??? example "Grants [promotion] ([comment]) to adjacent [mapUnitFilter] units for the rest of the game"