diff --git a/core/src/com/unciv/ui/screens/devconsole/DevConsoleCommand.kt b/core/src/com/unciv/ui/screens/devconsole/DevConsoleCommand.kt index 965bf7a506..20785cd029 100644 --- a/core/src/com/unciv/ui/screens/devconsole/DevConsoleCommand.kt +++ b/core/src/com/unciv/ui/screens/devconsole/DevConsoleCommand.kt @@ -37,6 +37,7 @@ internal open class ConsoleAction( val formatParams = format.split(' ').drop(2).map { it.removeSurrounding("<",">").removeSurrounding("[","]").removeSurrounding("\"") } + if (formatParams.none()) return null // nothing to autocomplete - for example "history " + tab if (formatParams.size < params.size) return null // format has no definition, so there are no options to choose from // It is possible we're here *with* another format parameter but an *empty* params (e.g. `tile addriver` and hit tab) -> see below val (formatParam, lastParam) = if (params.lastIndex in formatParams.indices) diff --git a/docs/Modders/uniques.md b/docs/Modders/uniques.md index 4a568963ea..d0f3d8cb4c 100644 --- a/docs/Modders/uniques.md +++ b/docs/Modders/uniques.md @@ -575,14 +575,6 @@ Simple unique parameters are explained by mouseover. Complex parameters are expl Applicable to: Global, FollowerBelief -??? example "Provides a sum of gold each time you spend a Great Person" - Applicable to: Global - -??? example "[stats] whenever a Great Person is expended" - Example: "[+1 Gold, +2 Production] whenever a Great Person is expended" - - Applicable to: Global - ??? example "[relativeAmount]% Gold from Great Merchant trade missions" Example: "[+20]% Gold from Great Merchant trade missions" @@ -2389,6 +2381,11 @@ Simple unique parameters are explained by mouseover. Complex parameters are expl Applicable to: UnitTriggerCondition +??? example "<upon expending a [mapUnitFilter] unit>" + Example: "<upon expending a [Wounded] unit>" + + Applicable to: UnitTriggerCondition + ??? example "<upon being defeated>" Applicable to: UnitTriggerCondition