mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-04 15:27:50 +07:00
Better docs for Trigger Conditions
This commit is contained in:
@ -63,7 +63,8 @@ class UniqueDocsWriter {
|
||||
for (uniqueType in uniqueTypes) {
|
||||
if (uniqueType.getDeprecationAnnotation() != null) continue
|
||||
|
||||
val uniqueText = if (targetType == UniqueTarget.Conditional) "<${uniqueType.text}>"
|
||||
val uniqueText = if (targetType == UniqueTarget.Conditional || targetType == UniqueTarget.TriggerCondition)
|
||||
"<${uniqueType.text}>"
|
||||
else uniqueType.text
|
||||
lines += "??? example \"$uniqueText\"" // collapsable material mkdocs block, see https://squidfunk.github.io/mkdocs-material/reference/admonitions/?h=%3F%3F%3F#collapsible-blocks
|
||||
if (uniqueType.parameterTypeMap.isNotEmpty()) {
|
||||
|
Reference in New Issue
Block a user