From adccee0b2e7e05e1b4eb691feaa4545cb67bd1bd Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Sun, 25 Feb 2024 21:25:01 +0200 Subject: [PATCH] 'cached unique' documentation is within collapsible block --- .../com/unciv/app/desktop/UniqueDocsWriter.kt | 2 +- docs/Modders/uniques.md | 32 +++++++++---------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/desktop/src/com/unciv/app/desktop/UniqueDocsWriter.kt b/desktop/src/com/unciv/app/desktop/UniqueDocsWriter.kt index e1cf388c8b..47c942705f 100644 --- a/desktop/src/com/unciv/app/desktop/UniqueDocsWriter.kt +++ b/desktop/src/com/unciv/app/desktop/UniqueDocsWriter.kt @@ -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 += "" diff --git a/docs/Modders/uniques.md b/docs/Modders/uniques.md index 1fa2e0fb6a..58b35bcce7 100644 --- a/docs/Modders/uniques.md +++ b/docs/Modders/uniques.md @@ -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"