Skip to content

Commit

Permalink
wmlindent pass
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Nov 27, 2015
1 parent 1e45c14 commit adb894d
Show file tree
Hide file tree
Showing 11 changed files with 55 additions and 58 deletions.
Expand Up @@ -41,8 +41,8 @@
#### Kalenz's code ####
[side]
side=1
{PLAYABLE}
fog=no
{PLAYABLE}
fog=no
save_id=Kalenz

no_leader=yes
Expand Down
Expand Up @@ -111,7 +111,7 @@
passive_leader=yes
[/ai]
recruit=Mage, Gryphon
{PLAYER_TEAM}
{PLAYER_TEAM}
fog=yes
share_view=no
[/side]
Expand Down
Expand Up @@ -264,28 +264,28 @@
[side]
side=1
no_leader=yes
{PLAYABLE}
{PLAYABLE}
{KALENZ}
[/side]

[side]
side=2
no_leader=yes
{PLAYABLE}
{PLAYABLE}
{LANDAR}
[/side]

[side]
side=3
no_leader=yes
{PLAYABLE}
{PLAYABLE}
{OLURF}
[/side]

[side]
side=4
no_leader=yes
{PLAYABLE}
{PLAYABLE}
{CLEODIL}
[/side]

Expand Down
Expand Up @@ -39,7 +39,7 @@
fog=yes
share_view=yes
no_leader=yes
{PLAYER_TEAM}
{PLAYER_TEAM}

[unit]
{KALENZ}
Expand Down Expand Up @@ -73,7 +73,7 @@
[/unit]
fog=yes
share_view=yes
{PLAYER_TEAM}
{PLAYER_TEAM}
[/side]

[side]
Expand All @@ -86,7 +86,7 @@
[/unit]
fog=yes
share_view=yes
{PLAYER_TEAM}
{PLAYER_TEAM}
[/side]

[side]
Expand All @@ -99,7 +99,7 @@
[/unit]
fog=yes
share_view=yes
{PLAYER_TEAM}
{PLAYER_TEAM}
[/side]
#endif

Expand Down
Expand Up @@ -46,7 +46,7 @@
[side]
side=1
{KALENZ}
{PLAYABLE}
{PLAYABLE}
type=Elvish High Lord
x=46
y=39
Expand Down
Expand Up @@ -79,7 +79,7 @@ Chapter Five"

[side]
side=1
{PLAYABLE}
{PLAYABLE}
save_id=Kalenz

no_leader=yes
Expand Down Expand Up @@ -181,7 +181,7 @@ Chapter Five"
#ifdef MULTIPLAYER
[side]
side=4
{PLAYABLE}
{PLAYABLE}

{MULTIPLAYER_GOLD}

Expand Down Expand Up @@ -234,7 +234,6 @@ Chapter Five"
[gold_carryover]
carryover_percentage=0
[/gold_carryover]

[/objectives]
[/event]

Expand Down
Expand Up @@ -51,7 +51,7 @@

[side]
side=1
{PLAYABLE}
{PLAYABLE}
{KALENZ}
type=Elvish High Lord
x=11
Expand Down Expand Up @@ -352,7 +352,7 @@
x=11
y=18
[/unit]
{PLAYABLE}
{PLAYABLE}
{GOLD 160 130 100}
[/side]
#endif
Expand Down
Expand Up @@ -130,7 +130,6 @@
[gold_carryover]
carryover_percentage=0
[/gold_carryover]

[/objectives]
[/event]

Expand Down
17 changes: 8 additions & 9 deletions data/campaigns/Legend_of_Wesmere/utils/bigmap.cfg
Expand Up @@ -17,14 +17,14 @@
#enddef

#define LOW_TRACK STAGE
[story]
[part]
show_title=yes
delay=4000
{LOW_BIGMAP}
{STAGE}
[/part]
[/story]
[story]
[part]
show_title=yes
delay=4000
{LOW_BIGMAP}
{STAGE}
[/part]
[/story]
#enddef

# trackplacer: tracks begin
Expand Down Expand Up @@ -1453,4 +1453,3 @@
{OLD_BATTLE 981 132}
{OLD_BATTLE 906 76}
#enddef

2 changes: 1 addition & 1 deletion data/campaigns/Legend_of_Wesmere/utils/characters.cfg
Expand Up @@ -3,7 +3,7 @@
team_name=player
user_team_name= _ "Player"
#enddef

#define PLAYABLE
unrenamable=yes
controller=human
Expand Down
60 changes: 30 additions & 30 deletions data/campaigns/Legend_of_Wesmere/utils/low-macros.cfg
Expand Up @@ -252,12 +252,12 @@ Dwarvish Fighter, Dwarvish Thunderer, Dwarvish Scout, Dwarvish Guardsman#enddef
##### Persistent Global Variable macros for multiplayer mode #####

#define IF_FIRST_SCENARIO CODE
[if]
{VARIABLE_CONDITIONAL "side_number" equals ""}
[then]
{CODE}
[/then]
[/if]
[if]
{VARIABLE_CONDITIONAL "side_number" equals ""}
[then]
{CODE}
[/then]
[/if]
#enddef

#define LOAD_PERSISTENT_IF_LOCAL_EMPTY SIDE NAMESPACE GLOBAL_VAR LOCAL_VAR
Expand Down Expand Up @@ -324,48 +324,48 @@ Dwarvish Fighter, Dwarvish Thunderer, Dwarvish Scout, Dwarvish Guardsman#enddef

#define GET_PERSISTENT_RECALLS_FROM2 SIDE1 SIDE2 NAMESPACE GLOBAL_VAR
#Loads the recall list variable from both sides.
{IF_FIRST_SCENARIO (
{LOAD_PERSISTENT_2PLAYER {SIDE1} {SIDE2} {NAMESPACE} {GLOBAL_VAR} party_store}
{UNSTORE_PARTY {SIDE1} }
)}
{IF_FIRST_SCENARIO (
{LOAD_PERSISTENT_2PLAYER {SIDE1} {SIDE2} {NAMESPACE} {GLOBAL_VAR} party_store}
{UNSTORE_PARTY {SIDE1} }
)}
#enddef

#define GET_PERSISTENT_RECALLS_FROM3 SIDE1 SIDE2 SIDE3 NAMESPACE GLOBAL_VAR
#Loads the recall list variable from three sides.
{IF_FIRST_SCENARIO (
{LOAD_PERSISTENT_3PLAYER {SIDE1} {SIDE2} {SIDE3} {NAMESPACE} {GLOBAL_VAR} party_store}
{UNSTORE_PARTY {SIDE1} }
)}
{IF_FIRST_SCENARIO (
{LOAD_PERSISTENT_3PLAYER {SIDE1} {SIDE2} {SIDE3} {NAMESPACE} {GLOBAL_VAR} party_store}
{UNSTORE_PARTY {SIDE1} }
)}
#enddef

#define GET_PERSISTENT_RECALLS_FROM4 SIDE1 SIDE2 SIDE3 SIDE4 NAMESPACE GLOBAL_VAR
#Loads the recall list variable from four sides.
{IF_FIRST_SCENARIO (
{LOAD_PERSISTENT_4PLAYER {SIDE1} {SIDE2} {SIDE3} {SIDE4} {NAMESPACE} {GLOBAL_VAR} party_store}
{UNSTORE_PARTY {SIDE1} }
)}
{IF_FIRST_SCENARIO (
{LOAD_PERSISTENT_4PLAYER {SIDE1} {SIDE2} {SIDE3} {SIDE4} {NAMESPACE} {GLOBAL_VAR} party_store}
{UNSTORE_PARTY {SIDE1} }
)}
#enddef

#define GET_PERSISTENT_GOLD_FROM2 SIDE1 SIDE2 NAMESPACE GLOBAL_VAR
#Loads the recall list variable from both sides.
{IF_FIRST_SCENARIO (
{LOAD_PERSISTENT_2PLAYER {SIDE1} {SIDE2} {NAMESPACE} {GLOBAL_VAR} gold_store}
{SET_MP_GOLD {SIDE1} }
)}
{IF_FIRST_SCENARIO (
{LOAD_PERSISTENT_2PLAYER {SIDE1} {SIDE2} {NAMESPACE} {GLOBAL_VAR} gold_store}
{SET_MP_GOLD {SIDE1} }
)}
#enddef

#define GET_PERSISTENT_GOLD_FROM3 SIDE1 SIDE2 SIDE3 NAMESPACE GLOBAL_VAR
#Loads the recall list variable from both sides.
{IF_FIRST_SCENARIO (
{LOAD_PERSISTENT_3PLAYER {SIDE1} {SIDE2} {SIDE3} {NAMESPACE} {GLOBAL_VAR} gold_store}
{SET_MP_GOLD {SIDE1} }
)}
{IF_FIRST_SCENARIO (
{LOAD_PERSISTENT_3PLAYER {SIDE1} {SIDE2} {SIDE3} {NAMESPACE} {GLOBAL_VAR} gold_store}
{SET_MP_GOLD {SIDE1} }
)}
#enddef

#define GET_PERSISTENT_GOLD_FROM4 SIDE1 SIDE2 SIDE3 SIDE4 NAMESPACE GLOBAL_VAR
#Loads the recall list variable from both sides.
{IF_FIRST_SCENARIO (
{LOAD_PERSISTENT_4PLAYER {SIDE1} {SIDE2} {SIDE3} {SIDE4} {NAMESPACE} {GLOBAL_VAR} gold_store}
{SET_MP_GOLD {SIDE1} }
)}
{IF_FIRST_SCENARIO (
{LOAD_PERSISTENT_4PLAYER {SIDE1} {SIDE2} {SIDE3} {SIDE4} {NAMESPACE} {GLOBAL_VAR} gold_store}
{SET_MP_GOLD {SIDE1} }
)}
#enddef

0 comments on commit adb894d

Please sign in to comment.