Special-case a single unit level 3 list
This commit is contained in:
parent
ab1c48076c
commit
a962f1e276
1 changed files with 13 additions and 8 deletions
|
@ -79,17 +79,22 @@
|
|||
[/filter]
|
||||
[/store_unit]
|
||||
|
||||
[if]
|
||||
[variable]
|
||||
name=l3_store.length
|
||||
numerical_equals=0
|
||||
[/variable]
|
||||
[then]
|
||||
[switch]
|
||||
variable=l3_store.length
|
||||
[case]
|
||||
value=0
|
||||
[set_variable]
|
||||
name=left_behind
|
||||
value= _ "some experienced warriors" # wmllint: ignore
|
||||
[/set_variable]
|
||||
[/then]
|
||||
[/case]
|
||||
[case]
|
||||
value=1
|
||||
[set_variable]
|
||||
name=left_behind
|
||||
format=$l3_store[0].name
|
||||
[/set_variable]
|
||||
[/case]
|
||||
[else]
|
||||
{VARIABLE l3_length $l3_store.length}
|
||||
{VARIABLE_OP l3_length add -1}
|
||||
|
@ -122,7 +127,7 @@
|
|||
{NEXT i}
|
||||
{CLEAR_VARIABLE l3_length}
|
||||
[/else]
|
||||
[/if]
|
||||
[/switch]
|
||||
[/event]
|
||||
|
||||
[side]
|
||||
|
|
Loading…
Add table
Reference in a new issue