Fixed unique documentation not updating

This commit is contained in:
yairm210 2024-08-20 09:08:07 +03:00
parent 637a2a8208
commit ec462f9e86
2 changed files with 54 additions and 29 deletions

View File

@ -64,7 +64,7 @@ internal object DesktopLauncher {
// For more info see https://github.com/yairm210/Unciv/pull/3202 and https://github.com/LWJGL/lwjgl/issues/119 // For more info see https://github.com/yairm210/Unciv/pull/3202 and https://github.com/LWJGL/lwjgl/issues/119
System.setProperty("org.lwjgl.opengl.Display.allowSoftwareOpenGL", "true") System.setProperty("org.lwjgl.opengl.Display.allowSoftwareOpenGL", "true")
val isRunFromJAR = true//DesktopLauncher.javaClass.`package`.specificationVersion != null val isRunFromJAR = DesktopLauncher.javaClass.`package`.specificationVersion != null
ImagePacker.packImages(isRunFromJAR) ImagePacker.packImages(isRunFromJAR)
val config = Lwjgl3ApplicationConfiguration() val config = Lwjgl3ApplicationConfiguration()

View File

@ -9,6 +9,7 @@ Simple unique parameters are explained by mouseover. Complex parameters are expl
Uniques that have immediate, one-time effects. These can be added to techs to trigger when researched, to policies to trigger when adopted, to eras to trigger when reached, to buildings to trigger when built. Alternatively, you can add a TriggerCondition to them to make them into Global uniques that activate upon a specific event.They can also be added to units to grant them the ability to trigger this effect as an action, which can be modified with UnitActionModifier and UnitTriggerCondition conditionals. Uniques that have immediate, one-time effects. These can be added to techs to trigger when researched, to policies to trigger when adopted, to eras to trigger when reached, to buildings to trigger when built. Alternatively, you can add a TriggerCondition to them to make them into Global uniques that activate upon a specific event.They can also be added to units to grant them the ability to trigger this effect as an action, which can be modified with UnitActionModifier and UnitTriggerCondition conditionals.
??? example "Gain a free [buildingName] [cityFilter]" ??? example "Gain a free [buildingName] [cityFilter]"
Free buildings CANNOT be self-removing - this leads to an endless loop of trying to add the building
Example: "Gain a free [Library] [in all cities]" Example: "Gain a free [Library] [in all cities]"
Applicable to: Triggerable, Global Applicable to: Triggerable, Global
@ -135,6 +136,11 @@ Simple unique parameters are explained by mouseover. Complex parameters are expl
Applicable to: Triggerable Applicable to: Triggerable
??? example "Gain control over [tileFilter] tiles in a [amount]-tile radius"
Example: "Gain control over [Farm] tiles in a [3]-tile radius"
Applicable to: Triggerable
??? example "Reveal up to [positiveAmount/'all'] [tileFilter] within a [positiveAmount] tile radius" ??? example "Reveal up to [positiveAmount/'all'] [tileFilter] within a [positiveAmount] tile radius"
Example: "Reveal up to [3] [Farm] within a [3] tile radius" Example: "Reveal up to [3] [Farm] within a [3] tile radius"
@ -221,6 +227,16 @@ Simple unique parameters are explained by mouseover. Complex parameters are expl
Applicable to: UnitTriggerable Applicable to: UnitTriggerable
??? example "This Unit gains [amount] movement"
Example: "This Unit gains [3] movement"
Applicable to: UnitTriggerable
??? example "This Unit loses [amount] movement"
Example: "This Unit loses [3] movement"
Applicable to: UnitTriggerable
## Global uniques ## Global uniques
!!! note "" !!! note ""
@ -536,6 +552,7 @@ Simple unique parameters are explained by mouseover. Complex parameters are expl
Applicable to: Global, Unit Applicable to: Global, Unit
??? example "Gain a free [buildingName] [cityFilter]" ??? example "Gain a free [buildingName] [cityFilter]"
Free buildings CANNOT be self-removing - this leads to an endless loop of trying to add the building
Example: "Gain a free [Library] [in all cities]" Example: "Gain a free [Library] [in all cities]"
Applicable to: Triggerable, Global Applicable to: Triggerable, Global
@ -885,6 +902,9 @@ Simple unique parameters are explained by mouseover. Complex parameters are expl
Applicable to: Global, Unit Applicable to: Global, Unit
??? example "Ranged attacks may be performed over obstacles"
Applicable to: Global, Unit
??? example "No defensive terrain bonus" ??? example "No defensive terrain bonus"
Applicable to: Global, Unit Applicable to: Global, Unit
@ -894,6 +914,12 @@ Simple unique parameters are explained by mouseover. Complex parameters are expl
??? example "No damage penalty for wounded units" ??? example "No damage penalty for wounded units"
Applicable to: Global, Unit Applicable to: Global, Unit
??? example "Unable to capture cities"
Applicable to: Global, Unit
??? example "Unable to pillage tiles"
Applicable to: Global, Unit
??? example "No movement cost to pillage" ??? example "No movement cost to pillage"
Applicable to: Global, Unit Applicable to: Global, Unit
@ -1784,7 +1810,7 @@ Simple unique parameters are explained by mouseover. Complex parameters are expl
Applicable to: Unit Applicable to: Unit
??? example "Ranged attacks may be performed over obstacles" ??? example "Ranged attacks may be performed over obstacles"
Applicable to: Unit Applicable to: Global, Unit
??? example "Nuclear weapon of Strength [amount]" ??? example "Nuclear weapon of Strength [amount]"
Example: "Nuclear weapon of Strength [3]" Example: "Nuclear weapon of Strength [3]"
@ -1807,10 +1833,10 @@ Simple unique parameters are explained by mouseover. Complex parameters are expl
Applicable to: Unit Applicable to: Unit
??? example "Unable to capture cities" ??? example "Unable to capture cities"
Applicable to: Unit Applicable to: Global, Unit
??? example "Unable to pillage tiles" ??? example "Unable to pillage tiles"
Applicable to: Unit Applicable to: Global, Unit
??? example "No movement cost to pillage" ??? example "No movement cost to pillage"
Applicable to: Global, Unit Applicable to: Global, Unit
@ -2157,16 +2183,11 @@ Simple unique parameters are explained by mouseover. Complex parameters are expl
??? example "Neighboring tiles will convert to [baseTerrain/terrainFeature]" ??? example "Neighboring tiles will convert to [baseTerrain/terrainFeature]"
Supports conditionals that need only a Tile as context and nothing else, like `<with [n]% chance>`, and applies them per neighbor. Supports conditionals that need only a Tile as context and nothing else, like `<with [n]% chance>`, and applies them per neighbor.
If your mod renames Coast or Lakes, do not use this with one of these as parameter, as the code preventing artifacts won't work.
Example: "Neighboring tiles will convert to [Grassland]" Example: "Neighboring tiles will convert to [Grassland]"
Applicable to: Terrain Applicable to: Terrain
??? example "Neighboring tiles except [simpleTerrain] will convert to [baseTerrain/terrainFeature]"
Supports conditionals that need only a Tile as context and nothing else, like `<with [n]% chance>`, and applies them per neighbor.
Example: "Neighboring tiles except [Elevated] will convert to [Grassland]"
Applicable to: Terrain
??? example "Grants [stats] to the first civilization to discover it" ??? example "Grants [stats] to the first civilization to discover it"
Example: "Grants [+1 Gold, +2 Production] to the first civilization to discover it" Example: "Grants [+1 Gold, +2 Production] to the first civilization to discover it"
@ -2434,9 +2455,6 @@ Simple unique parameters are explained by mouseover. Complex parameters are expl
??? example "Provides a random bonus when entered" ??? example "Provides a random bonus when entered"
Applicable to: Improvement Applicable to: Improvement
??? example "Constructing it will take over the tiles around it and assign them to your closest city"
Applicable to: Improvement
??? example "Unpillagable" ??? example "Unpillagable"
Applicable to: Improvement Applicable to: Improvement
@ -2497,9 +2515,11 @@ Simple unique parameters are explained by mouseover. Complex parameters are expl
Applicable to: Resource Applicable to: Resource
??? example "Stockpiled" ??? example "Stockpiled"
This resource is accumulated each turn, rather than having a set of producers and consumers at a given moment.The current stockpiled amount can be affected with trigger uniques.
Applicable to: Resource Applicable to: Resource
??? example "City-level resource" ??? example "City-level resource"
This resource is calculated on a per-city level rather than a per-civ level
Applicable to: Resource Applicable to: Resource
??? example "Cannot be traded" ??? example "Cannot be traded"
@ -2685,12 +2705,6 @@ Simple unique parameters are explained by mouseover. Complex parameters are expl
Modifiers that can be added to other uniques to limit when they will be active Modifiers that can be added to other uniques to limit when they will be active
??? example "&lt;for [amount] turns&gt;"
Turns this unique into a trigger, activating this unique as a *global* unique for a number of turns
Example: "&lt;for [3] turns&gt;"
Applicable to: Conditional
??? example "&lt;with [amount]% chance&gt;" ??? example "&lt;with [amount]% chance&gt;"
Example: "&lt;with [3]% chance&gt;" Example: "&lt;with [3]% chance&gt;"
@ -3024,21 +3038,21 @@ Simple unique parameters are explained by mouseover. Complex parameters are expl
Applicable to: Conditional Applicable to: Conditional
??? example "&lt;in tiles adjacent to [tileFilter]&gt;"
Example: "&lt;in tiles adjacent to [Farm]&gt;"
Applicable to: Conditional
??? example "&lt;in tiles not adjacent to [tileFilter]&gt;"
Example: "&lt;in tiles not adjacent to [Farm]&gt;"
Applicable to: Conditional
??? example "&lt;within [amount] tiles of a [tileFilter]&gt;" ??? example "&lt;within [amount] tiles of a [tileFilter]&gt;"
Example: "&lt;within [3] tiles of a [Farm]&gt;" Example: "&lt;within [3] tiles of a [Farm]&gt;"
Applicable to: Conditional Applicable to: Conditional
??? example "&lt;in tiles adjacent to [tileFilter] tiles&gt;"
Example: "&lt;in tiles adjacent to [Farm] tiles&gt;"
Applicable to: Conditional
??? example "&lt;in tiles not adjacent to [tileFilter] tiles&gt;"
Example: "&lt;in tiles not adjacent to [Farm] tiles&gt;"
Applicable to: Conditional
??? example "&lt;on water maps&gt;" ??? example "&lt;on water maps&gt;"
Applicable to: Conditional Applicable to: Conditional
@ -3077,6 +3091,11 @@ Simple unique parameters are explained by mouseover. Complex parameters are expl
Applicable to: Conditional Applicable to: Conditional
??? example "&lt;if [modFilter] is enabled&gt;"
Example: "&lt;if [DeCiv Redux] is enabled&gt;"
Applicable to: Conditional
## TriggerCondition uniques ## TriggerCondition uniques
!!! note "" !!! note ""
@ -3254,6 +3273,12 @@ Simple unique parameters are explained by mouseover. Complex parameters are expl
Modifiers that can be added to other uniques changing user experience, not their behavior Modifiers that can be added to other uniques changing user experience, not their behavior
??? example "&lt;for [amount] turns&gt;"
Turns this unique into a trigger, activating this unique as a *global* unique for a number of turns
Example: "&lt;for [3] turns&gt;"
Applicable to: MetaModifier
??? example "&lt;hidden from users&gt;" ??? example "&lt;hidden from users&gt;"
Applicable to: MetaModifier Applicable to: MetaModifier