mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-08 23:08:35 +07:00
Validation warning Suppression as Unique or modifier (#11142)
* Make source object available to RulesetErrorList.add * Make ruleset available to RulesetErrorList * Introduce UniqueTarget.MetaModifier - ModifierHiddenFromUsers won't stay alone * There was no use of prefix without the unique name - fold * Introduce UniqueTarget.MetaModifier - doc * Pass context down even inside UniqueValidator, convenience factory for limited RulesetErrorList's * Clean up RulesetErrorList.of factory * Reorder parameters of RulesetErrorList.add * Suppression Unique and implementation * Remove logging
This commit is contained in:
@ -159,6 +159,12 @@ Simple unique parameters are explained by mouseover. Complex parameters are expl
|
||||
|
||||
Applicable to: Triggerable
|
||||
|
||||
??? example "Suppress warning [validationWarning]"
|
||||
Allows suppressing specific validation warnings. Errors, deprecation warnings, or warnings about untyped and non-filtering uniques should be heeded, not suppressed, and are therefore not accepted. Note that this can be used in ModOptions, in the uniques a warning is about, or as modifier on the unique triggering a warning - but you still need to be specific. Even in the modifier case you will need to specify a sufficiently selective portion of the warning text as parameter.
|
||||
Example: "Suppress warning [Tinman is supposed to automatically upgrade at tech Clockwork, and therefore Servos for its upgrade Mecha may not yet be researched! -or- *is supposed to automatically upgrade*]"
|
||||
|
||||
Applicable to: Triggerable, Terrain, Speed, ModOptions, MetaModifier
|
||||
|
||||
## UnitTriggerable uniques
|
||||
!!! note ""
|
||||
|
||||
@ -2369,4 +2375,5 @@ Simple unique parameters are explained by mouseover. Complex parameters are expl
|
||||
*[stockpiledResource]: The name of any stockpiled.
|
||||
*[tech]: The name of any tech.
|
||||
*[tileFilter]: Anything that can be used either in an improvementFilter or in a terrainFilter can be used here, plus 'unimproved'
|
||||
*[validationWarning]: Suppresses one specific Ruleset validation warning. This can specify the full text verbatim including correct upper/lower case, or it can be a wildcard case-insensitive simple pattern starting and ending in an asterisk ('*'). If the suppression unique is used within an object or as modifier (not ModOptions), the wildcard symbols can be omitted, as selectivity is better due to the limited scope.
|
||||
*[victoryType]: The name of any victory type: 'Neutral', 'Cultural', 'Diplomatic', 'Domination', 'Scientific', 'Time'
|
Reference in New Issue
Block a user