Skip to content

Commit

Permalink
Ran wmlindent on campaigns
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Feb 24, 2016
1 parent a87939a commit 1ff15d3
Show file tree
Hide file tree
Showing 22 changed files with 225 additions and 227 deletions.
2 changes: 1 addition & 1 deletion data/campaigns/An_Orcish_Incursion/_main.cfg
Expand Up @@ -20,7 +20,7 @@
{CAMPAIGN_DIFFICULTY EASY "units/elves-wood/fighter.png~RC(magenta>red)" ( _ "Fighter") ( _ "Beginner")}
{CAMPAIGN_DIFFICULTY NORMAL "units/elves-wood/lord.png~RC(magenta>red)" ( _ "Lord") ( _ "Normal")} {DEFAULT_DIFFICULTY}
{CAMPAIGN_DIFFICULTY HARD "units/elves-wood/high-lord.png~RC(magenta>red)" ( _ "High Lord") ( _ "Challenging")}

# Geographical and historical assumptions (ESR):
#
# As originally written by Josh Parsons, this campaign was not set in
Expand Down
Expand Up @@ -85,7 +85,7 @@
[side]
side=3
controller=ai
hidden=yes
hidden=yes
team_name=Mages
user_team_name= _ "Mages"
# Use stock flags
Expand Down
70 changes: 35 additions & 35 deletions data/campaigns/Eastern_Invasion/scenarios/13_The_Drowned_Plains.cfg
Expand Up @@ -241,41 +241,41 @@
[/filter_location]
[command]
{VARIABLE random_ambusher_type_i ("$(($random_ambusher_type_i + 1) % $random_ambusher_type_table.length)")}
[unit]
x,y=$ambush_location.x,$ambush_location.y
type=$random_ambusher_type_table[$random_ambusher_type_i].type
side={SIDE}
role=ambusher
random_traits=yes
upkeep=loyal
[/unit]

[object]
silent=yes

[filter]
x,y=$ambush_location.x,$ambush_location.y
[/filter]

[effect]
apply_to=new_ability

[abilities]
[hides]
id=undead_ambush
affect_self=yes

[filter_self]
role=ambusher

[filter_location]
terrain=Ss
[/filter_location]
[/filter_self]
[/hides]
[/abilities]
[/effect]
[/object]
[unit]
x,y=$ambush_location.x,$ambush_location.y
type=$random_ambusher_type_table[$random_ambusher_type_i].type
side={SIDE}
role=ambusher
random_traits=yes
upkeep=loyal
[/unit]

[object]
silent=yes

[filter]
x,y=$ambush_location.x,$ambush_location.y
[/filter]

[effect]
apply_to=new_ability

[abilities]
[hides]
id=undead_ambush
affect_self=yes

[filter_self]
role=ambusher

[filter_location]
terrain=Ss
[/filter_location]
[/filter_self]
[/hides]
[/abilities]
[/effect]
[/object]
[/command]
[/random_placement]
#enddef
Expand Down
158 changes: 79 additions & 79 deletions data/campaigns/Heir_To_The_Throne/scenarios/07_Crossroads.cfg
Expand Up @@ -284,86 +284,86 @@
#define ORC_AMBUSH_AREA SIDE X_SPAN Y_SPAN NUMBER
# Any hill that's completely surrounded by other hills, mountains or
# forest is eligible as an ambush location.
[random_placement]
[random_placement]
variable=ambush_location
num_items={NUMBER}
[filter_location]
x={X_SPAN}
y={Y_SPAN}
terrain=Hh

[not]
[filter_adjacent_location]
[not]
terrain=Hh*,Mm*,*^F*
[/not]
[/filter_adjacent_location]
[/not]
[/filter_location]
[command]
[if]
[variable]
name=random_ambusher_type_i
less_than=4
[/variable]

[then]
{VARIABLE_OP random_ambusher_type_i add 1}
[/then]

[else]
{VARIABLE random_ambusher_type_i 0}
[/else]
[/if]

# And here we place an ambusher of a type specified by the
# random_ambusher_type_table and random_ambusher_type_i
# variables, thus always having the same ratio of different
# types.

[unit]
x,y=$ambush_location.x,$ambush_location.y
type=$random_ambusher_type_table[$random_ambusher_type_i].type
side={SIDE}
facing=sw
role=ambusher
random_traits=yes

[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]

[object]
silent=yes

[filter]
x,y=$ambush_location.x,$ambush_location.y
[/filter]

[effect]
apply_to=new_ability

[abilities]
[hides]
id=orc_ambush
affect_self=yes

[filter_self]
role=ambusher

[filter_location]
terrain=Hh,Mm
[/filter_location]
[/filter_self]
[/hides]
[/abilities]
[/effect]
[/object]
[/command]
[/random_placement]
num_items={NUMBER}
[filter_location]
x={X_SPAN}
y={Y_SPAN}
terrain=Hh

[not]
[filter_adjacent_location]
[not]
terrain=Hh*,Mm*,*^F*
[/not]
[/filter_adjacent_location]
[/not]
[/filter_location]
[command]
[if]
[variable]
name=random_ambusher_type_i
less_than=4
[/variable]

[then]
{VARIABLE_OP random_ambusher_type_i add 1}
[/then]

[else]
{VARIABLE random_ambusher_type_i 0}
[/else]
[/if]

# And here we place an ambusher of a type specified by the
# random_ambusher_type_table and random_ambusher_type_i
# variables, thus always having the same ratio of different
# types.

[unit]
x,y=$ambush_location.x,$ambush_location.y
type=$random_ambusher_type_table[$random_ambusher_type_i].type
side={SIDE}
facing=sw
role=ambusher
random_traits=yes

[modifications]
{TRAIT_LOYAL}
[/modifications]
{IS_LOYAL}
[/unit]

[object]
silent=yes

[filter]
x,y=$ambush_location.x,$ambush_location.y
[/filter]

[effect]
apply_to=new_ability

[abilities]
[hides]
id=orc_ambush
affect_self=yes

[filter_self]
role=ambusher

[filter_location]
terrain=Hh,Mm
[/filter_location]
[/filter_self]
[/hides]
[/abilities]
[/effect]
[/object]
[/command]
[/random_placement]

#enddef

# Only the number of ambushers differs by difficulty here.
Expand Down
Expand Up @@ -143,7 +143,7 @@ This is the story of Kalenz, Landar, and of the Elves in the first days of the h
#### /Kalenz side ####

#### Landar's side ####
{MP_SIDE 2 (
{MP_SIDE 2 (
save_id=Landar
{PLAYABLE}
{LANDAR}
Expand All @@ -163,7 +163,7 @@ This is the story of Kalenz, Landar, and of the Elves in the first days of the h
x=19
y=16
[/unit]
)}
)}
#### Landar's side ####

[side]
Expand Down
Expand Up @@ -84,7 +84,7 @@
{PLAYER_GOLD}
fog=no
extra_recruit=Elvish Fighter, Elvish Archer
)}
)}

### Olurf's Code ###
#define OLURFS_LAND
Expand Down Expand Up @@ -604,9 +604,9 @@
[endlevel]
result=victory
#ifdef MULTIPLAYER
bonus=0.5
bonus=0.5
#else
bonus=yes
bonus=yes
#endif
[/endlevel]
[/event]
Expand Down Expand Up @@ -646,9 +646,9 @@
[endlevel]
result=victory
#ifdef MULTIPLAYER
bonus=0.5
bonus=0.5
#else
bonus=yes
bonus=yes
#endif
[/endlevel]
[/event]
Expand Down
Expand Up @@ -97,8 +97,8 @@
save_id=Landar
fog=yes
share_view=yes
{PLAYER_GOLD}
)}
{PLAYER_GOLD}
)}

[side]
side=3
Expand Down Expand Up @@ -154,8 +154,8 @@

{MP_SIDE 4 (
no_leader=yes
previous_save_id=Landar
{PLAYABLE}
previous_save_id=Landar
{PLAYABLE}
save_id=El_Isomithir
fog=yes
share_view=yes
Expand All @@ -178,7 +178,7 @@
[/modifications]
{IS_LOYAL}
[/unit]
)}
)}

[side]
side=5
Expand Down Expand Up @@ -1178,7 +1178,7 @@
{GLOBAL_VARIABLE LoW_Chapter_One gold_store el_isomithir_gold global}
#endif
[/event]
{DEFAULT_VICTORY 0.5}
{DEFAULT_VICTORY 0.5}

{campaigns/Legend_of_Wesmere/utils/deaths.cfg}
[/scenario]
Expand Down
Expand Up @@ -90,7 +90,7 @@ Chapter Two"
{PLAYABLE}
{PLAYER_GOLD}
extra_recruit=Elvish Fighter, Elvish Archer, Elvish Scout
)}
)}

{MP_SIDE 3 (
no_leader=yes
Expand Down Expand Up @@ -233,10 +233,10 @@ Chapter Two"
[/recall]

#ifdef MULTIPLAYER
# TODO: this is the only unit that player3 controls until
# Cleodil is freed by the other players. We should make this
# scenario more intesting for player 3 during this time.
# Maybe give him some units that managed to escape and want to help?
# TODO: this is the only unit that player3 controls until
# Cleodil is freed by the other players. We should make this
# scenario more intesting for player 3 during this time.
# Maybe give him some units that managed to escape and want to help?
{UNIT 3 (Elvish Ranger) 23 24 (role=liberator)}
#endif
[allow_extra_recruit]
Expand Down Expand Up @@ -418,7 +418,7 @@ Chapter Two"
message= _ "When you meet your kin in the dry hells, tell them you perished at the hands of Kalenz’s elves!"
[/message]
[/event]
{DEFAULT_VICTORY 0.4}
{DEFAULT_VICTORY 0.4}

{campaigns/Legend_of_Wesmere/utils/deaths.cfg}
[/scenario]
Expand Down

0 comments on commit 1ff15d3

Please sign in to comment.