Converted remaining instances of 'add -'.

This commit is contained in:
Steven Panek 2010-12-05 23:45:04 +00:00
parent 4f9a324fdf
commit 03a3d3b552
3 changed files with 13 additions and 13 deletions

View file

@ -476,7 +476,7 @@
name=random_subscript
rand=1..$possible_unit_locations.length
[/set_variable]
{VARIABLE_OP random_subscript add -1}
{VARIABLE_OP random_subscript sub 1}
[unit]
type=$unit_type_table[$unit_type_table_i].type
@ -517,7 +517,7 @@
[/then]
[/if]
{VARIABLE_OP units_to_place add -1}
{VARIABLE_OP units_to_place sub 1}
[/do]
[/while]

View file

@ -17,7 +17,7 @@ Note: You need to use map settings for the scenario to work right."
#define RANDOMIZE_INDEX NUMBER
{VARIABLE ran_max {NUMBER}}
{VARIABLE_OP ran_max add -1}
{VARIABLE_OP ran_max sub 1}
{VARIABLE_OP ran_range value "0..$ran_max"}
{VARIABLE_OP random rand $ran_range}
#enddef
@ -227,7 +227,7 @@ Note: You need to use map settings for the scenario to work right."
{VARIABLE min_cost $new_unit.cost}
[/then]
[/if]
{VARIABLE_OP max_units add -1}
{VARIABLE_OP max_units sub 1}
{VARIABLE new_unit.variables.spawn_id {ID}}
{VARIABLE new_unit.role new_spawn{TIER_NUMBER}}
[unstore_unit]
@ -399,7 +399,7 @@ Note: You need to use map settings for the scenario to work right."
[/while]
{VARIABLE_OP spawn_id value main_spawns[$main_group]}
{CLEAR_VARIABLE $spawn_id}
{VARIABLE_OP main_group add -1}
{VARIABLE_OP main_group sub 1}
#enddef
#define VICTORY_CHECK_FROM_TURN TURN
@ -498,7 +498,7 @@ Note: You need to use map settings for the scenario to work right."
{VARIABLE fixed_y $fixed_spawns[$fixed_id].y}
{PLACE_SPAWN_GROUP $fixed_x $fixed_y}
{VARIABLE fixed_spawns[$fixed_id].spawn_number 0}
{VARIABLE_OP fixed_groups_left add -1}
{VARIABLE_OP fixed_groups_left sub 1}
[/then]
[/if]
#enddef
@ -568,7 +568,7 @@ Note: You need to use map settings for the scenario to work right."
numerical_equals=1
[/variable]
[then]
{VARIABLE_OP units add -1}
{VARIABLE_OP units sub 1}
[/then]
[/if]
{RANDOMIZE 3}
@ -595,7 +595,7 @@ Note: You need to use map settings for the scenario to work right."
[/while]
{CLEAR_VARIABLE num}
{VARIABLE triggered_spawns {SPAWN_NUMBER}}
{VARIABLE_OP triggered_spawns add -1}
{VARIABLE_OP triggered_spawns sub 1}
{VARIABLE final_turns $timed_spawn[$triggered_spawns].turn}
{CLEAR_VARIABLE triggered_spawns}
{VARIABLE_OP final_turns add 40}
@ -737,7 +737,7 @@ Note: You need to use map settings for the scenario to work right."
[then]
{VARIABLE type $main_spawns[$group_id].spawn_type[$random].type}
{SPAWN_UNIT {SIDE} $type $random 5 $max_units}
{VARIABLE_OP extra_units add -1}
{VARIABLE_OP extra_units sub 1}
[/then]
[else]
# fallback for invalid/cleared spawn groups
@ -916,7 +916,7 @@ Note: You need to use map settings for the scenario to work right."
[/variable]
[do]
{RANDOMIZE 3}
{VARIABLE_OP random add -1}
{VARIABLE_OP random sub 1}
[if]
[variable]
name=random
@ -925,7 +925,7 @@ Note: You need to use map settings for the scenario to work right."
[then]
{VARIABLE_OP turn add $random}
{VARIABLE_OP max_turns add -$random}
{VARIABLE_OP weather[{WEATHER_VALUE}].turns add -$random}
{VARIABLE_OP weather[{WEATHER_VALUE}].turns sub $random}
[/then]
[else]
# stop incrementing
@ -1081,7 +1081,7 @@ Note: You need to use map settings for the scenario to work right."
{VARIABLE random 1}
[/then]
[/if]
{VARIABLE_OP check add -1}
{VARIABLE_OP check sub 1}
[/do]
[/while]
{VARIABLE id $random}

View file

@ -44,7 +44,7 @@
{PICK_RECRUIT_OPTION ("units/human-loyalists/horseman.png~TC($side_number|,magenta)") "Horseman" _"Horseman" troop_7}
#textdomain wesnoth-anl
[/message]
{VARIABLE_OP player_$side_number|.warfare.troop_available add -1}
{VARIABLE_OP player_$side_number|.warfare.troop_available sub 1}
[/command]
# wmlindent: stop ignoring
[/set_menu_item]