ANL: code cleanup

This commit is contained in:
Severin Glöckner 2019-06-07 00:04:11 +02:00 committed by sevu
parent 32120a020d
commit 44535d992a
5 changed files with 24 additions and 16 deletions

View file

@ -92,7 +92,7 @@
[while]
[variable]
name=finished_help
equals=no
boolean_equals=no
[/variable]
[do]

View file

@ -284,7 +284,7 @@ Share knowledge of warfare"
[while]
[variable]
name=finished_options
equals=no
boolean_equals=no
[/variable]
[do]
@ -322,7 +322,7 @@ Give 20 gold to another player"
[while]
[variable]
name=finished_suboptions
equals=no
boolean_equals=no
[/variable]
[do]
@ -367,7 +367,7 @@ Help an ally with their research"
[while]
[variable]
name=finished_suboptions
equals=no
boolean_equals=no
[/variable]
[do]
@ -420,27 +420,27 @@ Negotiation Progress: $player_$side_number|.leader_option_1.progress|/$player_$s
[show_if]
[variable]
name=player_$side_number|.ally_1
equals=no
boolean_equals=no
[/variable]
[or]
[variable]
name=player_$side_number|.ally_2
equals=no
boolean_equals=no
[/variable]
[/or]
[or]
[variable]
name=player_$side_number|.ally_3
equals=no
boolean_equals=no
[/variable]
[/or]
[or]
[variable]
name=player_$side_number|.ally_4
equals=no
boolean_equals=no
[/variable]
[/or]
[/show_if]
@ -476,27 +476,27 @@ Negotiation Progress: $player_$side_number|.leader_option_2.progress|/$player_$s
[show_if]
[variable]
name=player_$side_number|.ally_5
equals=no
boolean_equals=no
[/variable]
[or]
[variable]
name=player_$side_number|.ally_6
equals=no
boolean_equals=no
[/variable]
[/or]
[or]
[variable]
name=player_$side_number|.ally_7
equals=no
boolean_equals=no
[/variable]
[/or]
[or]
[variable]
name=player_$side_number|.ally_8
equals=no
boolean_equals=no
[/variable]
[/or]
[/show_if]

View file

@ -117,7 +117,7 @@
[while]
[variable]
name=finished_options
equals=no
boolean_equals=no
[/variable]
[do]
@ -196,7 +196,7 @@ Study Progress: $player_$side_number|.warfare.progress|/$player_$side_number|.wa
[if]
[variable]
name=cancelled
not_equals=yes
boolean_equals=no
[/variable]
[then]
@ -211,6 +211,10 @@ Study Progress: $player_$side_number|.warfare.progress|/$player_$side_number|.wa
#[/allow_undo]
[/else]
[/if]
[clear_variable]
name=finished_options,cancelled
[/clear_variable]
[/command]
[/set_menu_item]
#enddef

View file

@ -132,7 +132,7 @@
[show_if]
[variable]
name=player_$side_number|.{VAR}
equals=no
boolean_equals=no
[/variable]
[/show_if]
[command]

View file

@ -35,7 +35,7 @@
[while]
[variable]
name=finished
equals=no
boolean_equals=no
[/variable]
[do]
@ -593,6 +593,10 @@
[/message]
[/do]
[/while]
[clear_variable]
name=finished
[/clear_variable]
[/command]
[/set_menu_item]
#enddef