ANL: applying refactoring changes to other files

Changes from the research refactoring can also be applied here:
- only storing sides gold instead of the whole side
- removing helper variable for loop
This commit is contained in:
Severin Glöckner 2019-06-12 16:01:02 +02:00
parent 04d32e5d96
commit 3925acd82f
2 changed files with 7 additions and 21 deletions

View file

@ -84,16 +84,8 @@
[/have_unit]
[/show_if]
[command]
[set_variable]
name=finished_help
value=no
[/set_variable]
[while]
[variable]
name=finished_help
boolean_equals=no
[/variable]
[true][/true]
[do]
[message]
@ -105,10 +97,7 @@
[option]
label= _ "Done"
[command]
[set_variable]
name=finished_help
value=yes
[/set_variable]
[break][/break]
[/command]
[/option]
@ -163,9 +152,6 @@
[/message]
[/do]
[/while]
[clear_variable]
name=finished_help
[/clear_variable]
[/command]
[/set_menu_item]
#enddef

View file

@ -28,7 +28,7 @@
label= "<span color='green'>" + "$player_{TARGET_SIDE}.name" + "</span>" # wmllint: ignore no spellcheck
[show_if]
[variable]
name=leader.gold
name=gold
greater_than_equal_to=20
[/variable]
@ -60,7 +60,7 @@
[/gold]
[set_variable]
name=leader.gold
name=gold
sub=20
[/set_variable]
@ -211,10 +211,10 @@
terrain="Gg^Ve,Gg^Vea"
[/filter_location]
[command]
[store_side]
[store_gold]
side=$side_number
variable=leader
[/store_side]
variable=gold
[/store_gold]
[store_unit]
[filter]