From c40c2cd9af52d1dbfecbad38684b92ce3dd5ba8b Mon Sep 17 00:00:00 2001 From: Charles Dang Date: Wed, 24 Feb 2016 09:06:32 +1100 Subject: [PATCH] ANL: strip unnecessary wmltools guards and ran wmlindent --- .../ANL_utils/ANL_research_options.cfg | 50 +- .../ANL_utils/ANL_worker_options.cfg | 1119 ++++++++--------- 2 files changed, 579 insertions(+), 590 deletions(-) diff --git a/data/multiplayer/scenarios/ANL_utils/ANL_research_options.cfg b/data/multiplayer/scenarios/ANL_utils/ANL_research_options.cfg index 5ffd0548d112..6ba56514482d 100644 --- a/data/multiplayer/scenarios/ANL_utils/ANL_research_options.cfg +++ b/data/multiplayer/scenarios/ANL_utils/ANL_research_options.cfg @@ -51,31 +51,28 @@ [filter_location] terrain="Gg^Ve,Gg^Vea" [/filter_location] -# wmlindent: start ignoring - [command] - [message] - speaker=unit - caption=_ "Study Complete" -# wmllint: display on - message= _ "Which type of unit would you like to be able to recruit?" -# wmllint: display off -#textdomain wesnoth-units - {PICK_RECRUIT_OPTION ("units/human-loyalists/spearman.png~TC($side_number|,magenta)") "Spearman" _"Spearman" troop_1} - {PICK_RECRUIT_OPTION ("units/human-loyalists/bowman.png~TC($side_number|,magenta)") "Bowman" _"Bowman" troop_2} - {PICK_RECRUIT_OPTION ("units/human-loyalists/fencer.png~TC($side_number|,magenta)") "Fencer" _"Fencer" troop_3} - {PICK_RECRUIT_OPTION ("units/human-loyalists/heavyinfantry.png~TC($side_number|,magenta)") "Heavy Infantryman" _"Heavy Infantryman" troop_4} - {PICK_RECRUIT_OPTION ("units/human-loyalists/sergeant.png~TC($side_number|,magenta)") "Sergeant" _"Sergeant" troop_5} - {PICK_RECRUIT_OPTION ("units/human-loyalists/cavalryman/cavalryman.png~TC($side_number|,magenta)") "Cavalryman" _"Cavalryman" troop_6} - {PICK_RECRUIT_OPTION ("units/human-loyalists/horseman/horseman.png~TC($side_number|,magenta)") "Horseman" _"Horseman" troop_7} -#textdomain wesnoth-anl - [/message] - - [set_variable] - name=player_$side_number|.warfare.troop_available - sub=1 - [/set_variable] - [/command] -# wmlindent: stop ignoring + + [command] + [message] + speaker=unit + caption=_ "Study Complete" + message= _ "Which type of unit would you like to be able to recruit?" + #textdomain wesnoth-units + {PICK_RECRUIT_OPTION ("units/human-loyalists/spearman.png~TC($side_number|,magenta)") "Spearman" _"Spearman" troop_1} + {PICK_RECRUIT_OPTION ("units/human-loyalists/bowman.png~TC($side_number|,magenta)") "Bowman" _"Bowman" troop_2} + {PICK_RECRUIT_OPTION ("units/human-loyalists/fencer.png~TC($side_number|,magenta)") "Fencer" _"Fencer" troop_3} + {PICK_RECRUIT_OPTION ("units/human-loyalists/heavyinfantry.png~TC($side_number|,magenta)") "Heavy Infantryman" _"Heavy Infantryman" troop_4} + {PICK_RECRUIT_OPTION ("units/human-loyalists/sergeant.png~TC($side_number|,magenta)") "Sergeant" _"Sergeant" troop_5} + {PICK_RECRUIT_OPTION ("units/human-loyalists/cavalryman/cavalryman.png~TC($side_number|,magenta)") "Cavalryman" _"Cavalryman" troop_6} + {PICK_RECRUIT_OPTION ("units/human-loyalists/horseman/horseman.png~TC($side_number|,magenta)") "Horseman" _"Horseman" troop_7} + #textdomain wesnoth-anl + [/message] + + [set_variable] + name=player_$side_number|.warfare.troop_available + sub=1 + [/set_variable] + [/command] [/set_menu_item] # Changing Research Target @@ -124,7 +121,6 @@ [/variable] [do] - # wmlindent: start ignoring [message] speaker=unit caption=_ "Research" @@ -150,7 +146,7 @@ Our mines produce $player_$side_number|.mining.gold|g [/set_variable] [/command] [/option] - # wmlindent: stop ignoring + # Farming [option] diff --git a/data/multiplayer/scenarios/ANL_utils/ANL_worker_options.cfg b/data/multiplayer/scenarios/ANL_utils/ANL_worker_options.cfg index 8f25ed3a4c6c..d69524375b53 100644 --- a/data/multiplayer/scenarios/ANL_utils/ANL_worker_options.cfg +++ b/data/multiplayer/scenarios/ANL_utils/ANL_worker_options.cfg @@ -39,567 +39,560 @@ [/variable] [do] -# wmlindent: start ignoring - [message] - speaker=unit -# wmllint: display on - message= _ "What shall I do my liege?" -# wmllint: display off - -[option] -message= _ "Nothing" - [command] - [set_variable] - name=finished - value=yes - [/set_variable] - [/command] -[/option] - -# ---------------------------------------------- -# FARMLAND - -# Convert to grassland - -[option] - image = "terrain/grass/green6.png" - message= "" + _ "Plant Farm" + "" - description = "" + _ "Cost: 0g" + "" - {ANL_SHOW_IF ("Peasant") "Re"} - [command] - {COMPLETE_ACTION 0} - {MODIFY_TERRAIN Gg $x1 $y1} - [sound] - name=dagger-swish.wav - [/sound] - [/command] -[/option] - -# ---------------------------------------------- -# GRASSLAND - -# Plant Farm - -[option] -image = "terrain/grass/green6.png" -message = "" + _ "Plant Farm" + "" -description = "" + _ "Cost: 0g" + "" - {ANL_SHOW_IF ("Peasant") "Gg,Gs"} - [command] - {COMPLETE_ACTION 0} - {MODIFY_TERRAIN Re $x1 $y1} - [sound] - name=entangle.wav - [/sound] - [/command] -[/option] - -# Build Village - -[option] -image = "terrain/village/human-tile.png" -message = "" + _ "Build Village" + "" -description = "" + _ "Cost: 15g" + "" - {ANL_SHOW_IF ("Peasant") "Gg,Gs"} - [command] - [if] - [variable] - name=worker.gold - greater_than_equal_to=15 - [/variable] - - [then] - {COMPLETE_ACTION (-15)} - {MODIFY_TERRAIN "Gg^Vh" $x1 $y1} - {ANL_CAPTURE_VILLAGE} - {BUILD_SOUND_1} - [/then] - [/if] - [/command] -[/option] - -# Build Castle - -[option] -image = "terrain/castle/castle-tile.png" -message = "" + _ "Build Castle" + "" -description = "" + _ "Cost: 6g" + "" - {ANL_SHOW_IF ("Peasant") "Gg,Gs"} - [command] - [if] - [variable] - name=worker.gold - greater_than_equal_to=6 - [/variable] - - [then] - {COMPLETE_ACTION (-6)} - {MODIFY_TERRAIN "Ch" $x1 $y1} - {BUILD_SOUND_2} - [/then] - [/if] - [/command] -[/option] - -# Flood - -[option] -image = "terrain/water/coast-tile.png" -message = "" + _ "Flood the Field" + "" -description = "" + _ "Cost: 4g" + "" - {ANL_SHOW_IF ("Peasant") "Gg,Gs"} - [command] - [if] - [variable] - name=worker.gold - greater_than_equal_to=4 - [/variable] - - [then] - {COMPLETE_ACTION -4} - {MODIFY_TERRAIN "Ww" $x1 $y1} - [sound] - name=water-blast.wav - [/sound] - [/then] - [/if] - [/command] -[/option] - -# Plant Saplings - -[option] -image = "terrain/forest/pine-tile.png" -message = "" + _ "Plant Saplings" + "" -description = "" + _ "Cost: 1g" + "" - {ANL_SHOW_IF ("Peasant") "Gg,Gs"} - [command] - [if] - [variable] - name=worker.gold - greater_than_equal_to=1 - [/variable] - - [then] - {COMPLETE_ACTION -1} - {MODIFY_TERRAIN "Gs^Fp" $x1 $y1} - [sound] - name=entangle.wav - [/sound] - [/then] - [/if] - [/command] -[/option] - -# ---------------------------------------------- -# FOREST - -# Chop Down Forest - -[option] -image = "terrain/grass/green6.png" -message = "" + _ "Chop Down Forest" + "" -description = "" + _ "Earns: 1g" + "" - {ANL_SHOW_IF ("Peasant") "Gs^Fp,Gs^Ft,Aa^Fpa,Gg^Fet"} - [command] - [set_variable] - name=finished - value=yes - [/set_variable] - - [set_variable] - name=unit.status.worked_this_turn - value=yes - [/set_variable] - [set_variable] - name=unit.moves - value=0 - [/set_variable] - - - [gold] - side=$side_number - amount=1 - [/gold] - - [sound] - name=dagger-swish.wav - [/sound] - [delay] - time=250 - [/delay] - [sound] - name=axe.ogg - [/sound] - [delay] - time=150 - [/delay] - [sound] - name=wose-die.ogg - [/sound] - - {MODIFY_TERRAIN "Gg" $x1 $y1} - - [unstore_unit] - variable=unit - text=1 # wmllint: ignore - red,green,blue=204,204,51 - [/unstore_unit] - [/command] -[/option] - -# ---------------------------------------------- -# HILLS - -# Build Gold Mine - -[option] -image = "terrain/village/human-hills-tile.png" -message = "" + _ "Build Mine" + "" -description = "" + _ "Cost: 25g" + "" - {ANL_SHOW_IF ("Peasant") "Hh"} - [command] - [if] - [variable] - name=worker.gold - greater_than_equal_to=25 - [/variable] - - [then] - {COMPLETE_ACTION (-25)} - {MODIFY_TERRAIN "Hh^Vhh" $x1 $y1} - {ANL_CAPTURE_VILLAGE} - {BUILD_SOUND_1} - [/then] - [/if] - [/command] -[/option] - -# ---------------------------------------------- -# MOUNTAINS - -# Build Gold Mine - -[option] -image = "terrain/village/human-mountain-tile.png" -message = "" + _ "Build Mine" + "" -description = "" + _ "Cost: 25g" + "" - {ANL_SHOW_IF ("Peasant") "Mm"} - [command] - [if] - [variable] - name=worker.gold - greater_than_equal_to=25 - [/variable] - - [then] - {COMPLETE_ACTION (-25)} - {MODIFY_TERRAIN "Mm^Vhh" $x1 $y1} - {ANL_CAPTURE_VILLAGE} - {BUILD_SOUND_1} - [/then] - [/if] - [/command] -[/option] - -# ---------------------------------------------- -# WATER - -# Make a Ford - -[option] -image = "terrain/water/ford.png" -message = "" + _ "Make a Ford" + "" -description = "" + _ "Cost: 3g" + "" - {ANL_SHOW_IF ("Peasant") "Ww"} - [command] - [if] - [variable] - name=worker.gold - greater_than_equal_to=3 - [/variable] - - [then] - {COMPLETE_ACTION (-3)} - [delay] - time=200 - [/delay] - [sound] - name=dagger-swish.wav - [/sound] - {MODIFY_TERRAIN "Wwf" $x1 $y1} - [/then] - [/if] - [/command] -[/option] - -# Landfill - -[option] -image = "terrain/grass/green6.png" -message = "" + _ "Landfill" + "" -description = "" + _ "Cost: 5g" + "" - {ANL_SHOW_IF ("Peasant") "Ww"} - [command] - [if] - [variable] - name=worker.gold - greater_than_equal_to=5 - [/variable] - - [then] - {COMPLETE_ACTION (-5)} - [delay] - time=200 - [/delay] - [sound] - name=claws.ogg - [/sound] - {MODIFY_TERRAIN "Gg" $x1 $y1} - [/then] - [/if] - [/command] -[/option] - -# ---------------------------------------------- -# FORD - -# Destroy the Ford - -[option] -image = "terrain/water/coast-tile.png" -message = "" + _ "Destroy the Ford" + "" -description = "" + _ "Cost: 0g" + "" - {ANL_SHOW_IF ("Peasant") "Wwf"} - [command] - {COMPLETE_ACTION 0} - [delay] - time=200 - [/delay] - {MODIFY_TERRAIN "Ww" $x1 $y1} - [sound] - name=pincers.ogg - [/sound] - [delay] - time=200 - [/delay] - [sound] - name=water-blast.wav - [/sound] - [/command] -[/option] - -# Landfill - -[option] -image = "terrain/grass/green6.png" -message = "" + _ "Landfill" + "" -description = "" + _ "Cost: 1g" + "" - {ANL_SHOW_IF ("Peasant") "Wwf"} - [command] - [if] - [variable] - name=worker.gold - greater_than_equal_to=1 - [/variable] - - [then] - {COMPLETE_ACTION (-1)} - [delay] - time=200 - [/delay] - [sound] - name=claws.ogg - [/sound] - {MODIFY_TERRAIN "Gg" $x1 $y1} - [/then] - [/if] - [/command] -[/option] - -# ---------------------------------------------- -# CAVE - -# Break Up Cave - -[option] -image = "terrain/grass/green6.png" -message = "" + _ "Smash Cave Floor" + "" -description = "" + _ "Cost: 2g" + "" - {ANL_SHOW_IF ("Peasant") "Uu,Uu^Ii"} - [command] - [if] - [variable] - name=worker.gold - greater_than_equal_to=2 - [/variable] - - [then] - {COMPLETE_ACTION (-2)} - [sound] - name=claws.ogg - [/sound] - {MODIFY_TERRAIN "Gg" $x1 $y1} - [/then] - [/if] - [/command] -[/option] - -# Convert Cave To Hills - -[option] -image = "terrain/hills/regular2.png" -message = "" + _ "Smash Cave Floor" + "" -description = "" + _ "Cost: 3g" + "" - {ANL_SHOW_IF ("Peasant") "Uh,Uh^Ii"} - [command] - [if] - [variable] - name=worker.gold - greater_than_equal_to=3 - [/variable] - - [then] - {COMPLETE_ACTION (-3)} - [sound] - name=claws.ogg - [/sound] - {MODIFY_TERRAIN "Hh" $x1 $y1} - [/then] - [/if] - [/command] -[/option] - -# Harvest Cave Mushrooms - -[option] -image = "terrain/cave/floor.png" -message = "" + _ "Harvest Mushrooms" + "" -description = "" + _ "Earns: 3g" + "" - {ANL_SHOW_IF ("Peasant") "Uu^Uf"} - [command] - [set_variable] - name=finished - value=yes - [/set_variable] - - [set_variable] - name=unit.status.worked_this_turn - value=yes - [/set_variable] - [set_variable] - name=unit.moves - value=0 - [/set_variable] - - [gold] - side=$side_number - amount=3 - [/gold] - - [sound] - name=dagger-swish.wav - [/sound] - [delay] - time=250 - [/delay] - [sound] - name=axe.ogg - [/sound] - - {MODIFY_TERRAIN "Uu" $x1 $y1} - - [unstore_unit] - variable=unit - text=3 # wmllint: ignore - red,green,blue=204,204,51 - [/unstore_unit] - [/command] -[/option] - -# ---------------------------------------------- -# CASTLE - -# Build Keep - -[option] -image = "terrain/castle/keep-tile.png" -message = "" + _ "Build a Keep" + "" -description = "" + _ "Cost: 6g" + "" - {ANL_SHOW_IF ("Peasant") "Ch,Ce,Cv,Cud,Chr,Chw,Chs"} - [command] - [if] - [variable] - name=worker.gold - greater_than_equal_to=6 - [/variable] - - [then] - {COMPLETE_ACTION (-6)} - {MODIFY_TERRAIN "Kh" $x1 $y1} - {BUILD_SOUND_2} - [/then] - [/if] - [/command] -[/option] - -# ---------------------------------------------- -# VILLAGE - -# Establish University - -[option] -image = "terrain/village/elven-tile.png" -message = "" + _ "Establish University" + "" -description = "" + _ "Cost: 7g" + "" - {ANL_SHOW_IF ("Peasant") "Gg^Vh,Aa^Vha"} - [command] - [if] - [variable] - name=worker.gold - greater_than_equal_to=7 - [/variable] - - [then] - {COMPLETE_ACTION (-7)} - {MODIFY_TERRAIN "Gg^Ve" $x1 $y1} - {ANL_CAPTURE_VILLAGE} - {BUILD_SOUND_2} - [/then] - [/if] - [/command] -[/option] - -# ---------------------------------------------- -# RUBBLE - -# Clear Rubble - -[option] -image = "terrain/grass/green6.png" -message = "" + _ "Clear the Ground" + "" -description = "" + _ "Cost: 0g" + "" - {ANL_SHOW_IF ("Peasant") "Rd"} - [command] - {COMPLETE_ACTION (-0)} - [delay] - time=200 - [/delay] - [sound] - name=claws.ogg - [/sound] - {MODIFY_TERRAIN "Gg" $x1 $y1} - [remove_item] - x,y=$x1,$y1 - [/remove_item] - [/command] -[/option] - -[/message] -[/do] -[/while] - -[/command] -[/set_menu_item] + [message] + speaker=unit + message= _ "What shall I do my liege?" + + [option] + message= _ "Nothing" + [command] + [set_variable] + name=finished + value=yes + [/set_variable] + [/command] + [/option] + + # ---------------------------------------------- + # FARMLAND + + # Convert to grassland + + [option] + image = "terrain/grass/green6.png" + message= "" + _ "Plant Farm" + "" + description = "" + _ "Cost: 0g" + "" + {ANL_SHOW_IF ("Peasant") "Re"} + [command] + {COMPLETE_ACTION 0} + {MODIFY_TERRAIN Gg $x1 $y1} + [sound] + name=dagger-swish.wav + [/sound] + [/command] + [/option] + + # ---------------------------------------------- + # GRASSLAND + + # Plant Farm + + [option] + image = "terrain/grass/green6.png" + message = "" + _ "Plant Farm" + "" + description = "" + _ "Cost: 0g" + "" + {ANL_SHOW_IF ("Peasant") "Gg,Gs"} + [command] + {COMPLETE_ACTION 0} + {MODIFY_TERRAIN Re $x1 $y1} + [sound] + name=entangle.wav + [/sound] + [/command] + [/option] + + # Build Village + + [option] + image = "terrain/village/human-tile.png" + message = "" + _ "Build Village" + "" + description = "" + _ "Cost: 15g" + "" + {ANL_SHOW_IF ("Peasant") "Gg,Gs"} + [command] + [if] + [variable] + name=worker.gold + greater_than_equal_to=15 + [/variable] + + [then] + {COMPLETE_ACTION (-15)} + {MODIFY_TERRAIN "Gg^Vh" $x1 $y1} + {ANL_CAPTURE_VILLAGE} + {BUILD_SOUND_1} + [/then] + [/if] + [/command] + [/option] + + # Build Castle + + [option] + image = "terrain/castle/castle-tile.png" + message = "" + _ "Build Castle" + "" + description = "" + _ "Cost: 6g" + "" + {ANL_SHOW_IF ("Peasant") "Gg,Gs"} + [command] + [if] + [variable] + name=worker.gold + greater_than_equal_to=6 + [/variable] + + [then] + {COMPLETE_ACTION (-6)} + {MODIFY_TERRAIN "Ch" $x1 $y1} + {BUILD_SOUND_2} + [/then] + [/if] + [/command] + [/option] + + # Flood + + [option] + image = "terrain/water/coast-tile.png" + message = "" + _ "Flood the Field" + "" + description = "" + _ "Cost: 4g" + "" + {ANL_SHOW_IF ("Peasant") "Gg,Gs"} + [command] + [if] + [variable] + name=worker.gold + greater_than_equal_to=4 + [/variable] + + [then] + {COMPLETE_ACTION -4} + {MODIFY_TERRAIN "Ww" $x1 $y1} + [sound] + name=water-blast.wav + [/sound] + [/then] + [/if] + [/command] + [/option] + + # Plant Saplings + + [option] + image = "terrain/forest/pine-tile.png" + message = "" + _ "Plant Saplings" + "" + description = "" + _ "Cost: 1g" + "" + {ANL_SHOW_IF ("Peasant") "Gg,Gs"} + [command] + [if] + [variable] + name=worker.gold + greater_than_equal_to=1 + [/variable] + + [then] + {COMPLETE_ACTION -1} + {MODIFY_TERRAIN "Gs^Fp" $x1 $y1} + [sound] + name=entangle.wav + [/sound] + [/then] + [/if] + [/command] + [/option] + + # ---------------------------------------------- + # FOREST + + # Chop Down Forest + + [option] + image = "terrain/grass/green6.png" + message = "" + _ "Chop Down Forest" + "" + description = "" + _ "Earns: 1g" + "" + {ANL_SHOW_IF ("Peasant") "Gs^Fp,Gs^Ft,Aa^Fpa,Gg^Fet"} + [command] + [set_variable] + name=finished + value=yes + [/set_variable] + + [set_variable] + name=unit.status.worked_this_turn + value=yes + [/set_variable] + [set_variable] + name=unit.moves + value=0 + [/set_variable] + + [gold] + side=$side_number + amount=1 + [/gold] + + [sound] + name=dagger-swish.wav + [/sound] + [delay] + time=250 + [/delay] + [sound] + name=axe.ogg + [/sound] + [delay] + time=150 + [/delay] + [sound] + name=wose-die.ogg + [/sound] + + {MODIFY_TERRAIN "Gg" $x1 $y1} + + [unstore_unit] + variable=unit + text=1 # wmllint: ignore + red,green,blue=204,204,51 + [/unstore_unit] + [/command] + [/option] + + # ---------------------------------------------- + # HILLS + + # Build Gold Mine + + [option] + image = "terrain/village/human-hills-tile.png" + message = "" + _ "Build Mine" + "" + description = "" + _ "Cost: 25g" + "" + {ANL_SHOW_IF ("Peasant") "Hh"} + [command] + [if] + [variable] + name=worker.gold + greater_than_equal_to=25 + [/variable] + + [then] + {COMPLETE_ACTION (-25)} + {MODIFY_TERRAIN "Hh^Vhh" $x1 $y1} + {ANL_CAPTURE_VILLAGE} + {BUILD_SOUND_1} + [/then] + [/if] + [/command] + [/option] + + # ---------------------------------------------- + # MOUNTAINS + + # Build Gold Mine + + [option] + image = "terrain/village/human-mountain-tile.png" + message = "" + _ "Build Mine" + "" + description = "" + _ "Cost: 25g" + "" + {ANL_SHOW_IF ("Peasant") "Mm"} + [command] + [if] + [variable] + name=worker.gold + greater_than_equal_to=25 + [/variable] + + [then] + {COMPLETE_ACTION (-25)} + {MODIFY_TERRAIN "Mm^Vhh" $x1 $y1} + {ANL_CAPTURE_VILLAGE} + {BUILD_SOUND_1} + [/then] + [/if] + [/command] + [/option] + + # ---------------------------------------------- + # WATER + + # Make a Ford + + [option] + image = "terrain/water/ford.png" + message = "" + _ "Make a Ford" + "" + description = "" + _ "Cost: 3g" + "" + {ANL_SHOW_IF ("Peasant") "Ww"} + [command] + [if] + [variable] + name=worker.gold + greater_than_equal_to=3 + [/variable] + + [then] + {COMPLETE_ACTION (-3)} + [delay] + time=200 + [/delay] + [sound] + name=dagger-swish.wav + [/sound] + {MODIFY_TERRAIN "Wwf" $x1 $y1} + [/then] + [/if] + [/command] + [/option] + + # Landfill + + [option] + image = "terrain/grass/green6.png" + message = "" + _ "Landfill" + "" + description = "" + _ "Cost: 5g" + "" + {ANL_SHOW_IF ("Peasant") "Ww"} + [command] + [if] + [variable] + name=worker.gold + greater_than_equal_to=5 + [/variable] + + [then] + {COMPLETE_ACTION (-5)} + [delay] + time=200 + [/delay] + [sound] + name=claws.ogg + [/sound] + {MODIFY_TERRAIN "Gg" $x1 $y1} + [/then] + [/if] + [/command] + [/option] + + # ---------------------------------------------- + # FORD + + # Destroy the Ford + + [option] + image = "terrain/water/coast-tile.png" + message = "" + _ "Destroy the Ford" + "" + description = "" + _ "Cost: 0g" + "" + {ANL_SHOW_IF ("Peasant") "Wwf"} + [command] + {COMPLETE_ACTION 0} + [delay] + time=200 + [/delay] + {MODIFY_TERRAIN "Ww" $x1 $y1} + [sound] + name=pincers.ogg + [/sound] + [delay] + time=200 + [/delay] + [sound] + name=water-blast.wav + [/sound] + [/command] + [/option] + + # Landfill + + [option] + image = "terrain/grass/green6.png" + message = "" + _ "Landfill" + "" + description = "" + _ "Cost: 1g" + "" + {ANL_SHOW_IF ("Peasant") "Wwf"} + [command] + [if] + [variable] + name=worker.gold + greater_than_equal_to=1 + [/variable] + + [then] + {COMPLETE_ACTION (-1)} + [delay] + time=200 + [/delay] + [sound] + name=claws.ogg + [/sound] + {MODIFY_TERRAIN "Gg" $x1 $y1} + [/then] + [/if] + [/command] + [/option] + + # ---------------------------------------------- + # CAVE + + # Break Up Cave + + [option] + image = "terrain/grass/green6.png" + message = "" + _ "Smash Cave Floor" + "" + description = "" + _ "Cost: 2g" + "" + {ANL_SHOW_IF ("Peasant") "Uu,Uu^Ii"} + [command] + [if] + [variable] + name=worker.gold + greater_than_equal_to=2 + [/variable] + + [then] + {COMPLETE_ACTION (-2)} + [sound] + name=claws.ogg + [/sound] + {MODIFY_TERRAIN "Gg" $x1 $y1} + [/then] + [/if] + [/command] + [/option] + + # Convert Cave To Hills + + [option] + image = "terrain/hills/regular2.png" + message = "" + _ "Smash Cave Floor" + "" + description = "" + _ "Cost: 3g" + "" + {ANL_SHOW_IF ("Peasant") "Uh,Uh^Ii"} + [command] + [if] + [variable] + name=worker.gold + greater_than_equal_to=3 + [/variable] + + [then] + {COMPLETE_ACTION (-3)} + [sound] + name=claws.ogg + [/sound] + {MODIFY_TERRAIN "Hh" $x1 $y1} + [/then] + [/if] + [/command] + [/option] + + # Harvest Cave Mushrooms + + [option] + image = "terrain/cave/floor.png" + message = "" + _ "Harvest Mushrooms" + "" + description = "" + _ "Earns: 3g" + "" + {ANL_SHOW_IF ("Peasant") "Uu^Uf"} + [command] + [set_variable] + name=finished + value=yes + [/set_variable] + + [set_variable] + name=unit.status.worked_this_turn + value=yes + [/set_variable] + [set_variable] + name=unit.moves + value=0 + [/set_variable] + + [gold] + side=$side_number + amount=3 + [/gold] + + [sound] + name=dagger-swish.wav + [/sound] + [delay] + time=250 + [/delay] + [sound] + name=axe.ogg + [/sound] + + {MODIFY_TERRAIN "Uu" $x1 $y1} + + [unstore_unit] + variable=unit + text=3 # wmllint: ignore + red,green,blue=204,204,51 + [/unstore_unit] + [/command] + [/option] + + # ---------------------------------------------- + # CASTLE + + # Build Keep + + [option] + image = "terrain/castle/keep-tile.png" + message = "" + _ "Build a Keep" + "" + description = "" + _ "Cost: 6g" + "" + {ANL_SHOW_IF ("Peasant") "Ch,Ce,Cv,Cud,Chr,Chw,Chs"} + [command] + [if] + [variable] + name=worker.gold + greater_than_equal_to=6 + [/variable] + + [then] + {COMPLETE_ACTION (-6)} + {MODIFY_TERRAIN "Kh" $x1 $y1} + {BUILD_SOUND_2} + [/then] + [/if] + [/command] + [/option] + + # ---------------------------------------------- + # VILLAGE + + # Establish University + + [option] + image = "terrain/village/elven-tile.png" + message = "" + _ "Establish University" + "" + description = "" + _ "Cost: 7g" + "" + {ANL_SHOW_IF ("Peasant") "Gg^Vh,Aa^Vha"} + [command] + [if] + [variable] + name=worker.gold + greater_than_equal_to=7 + [/variable] + + [then] + {COMPLETE_ACTION (-7)} + {MODIFY_TERRAIN "Gg^Ve" $x1 $y1} + {ANL_CAPTURE_VILLAGE} + {BUILD_SOUND_2} + [/then] + [/if] + [/command] + [/option] + + # ---------------------------------------------- + # RUBBLE + + # Clear Rubble + + [option] + image = "terrain/grass/green6.png" + message = "" + _ "Clear the Ground" + "" + description = "" + _ "Cost: 0g" + "" + {ANL_SHOW_IF ("Peasant") "Rd"} + [command] + {COMPLETE_ACTION (-0)} + [delay] + time=200 + [/delay] + [sound] + name=claws.ogg + [/sound] + {MODIFY_TERRAIN "Gg" $x1 $y1} + [remove_item] + x,y=$x1,$y1 + [/remove_item] + [/command] + [/option] + [/message] + [/do] + [/while] + [/command] + [/set_menu_item] #enddef -# wmlindent: stop ignoring