Skip to content

Commit

Permalink
Campaigns: wmlindent pass
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
Vultraz committed Jan 22, 2019
1 parent 8d3554c commit dc71359
Show file tree
Hide file tree
Showing 22 changed files with 97 additions and 109 deletions.
6 changes: 3 additions & 3 deletions data/campaigns/Delfadors_Memoirs/utils/characters.cfg
@@ -1,9 +1,9 @@
#textdomain wesnoth-dm

#define OBJECT_LOYAL
# There are several changes of leader to hero & vice versa during the campaign,
# so this object is given to any that may have hero status at some point to ensure
# the unit has no upkeep and to avoid taking up another trait slot
# There are several changes of leader to hero & vice versa during the campaign,
# so this object is given to any that may have hero status at some point to ensure
# the unit has no upkeep and to avoid taking up another trait slot
[object]
[effect]
apply_to=loyal
Expand Down
2 changes: 1 addition & 1 deletion data/campaigns/Delfadors_Memoirs/utils/sides.cfg
Expand Up @@ -263,7 +263,7 @@
{CLEAR_VARIABLE delfador_store}

# "n" tells us if {X} is even or odd. If it's even, "n" is equal to 1;
# otherwise, it's set to 0
# otherwise, it's set to 0
{VARIABLE n "$(if(({X}/2.0 = {X}/2), 1, 0))"}

{NAMED_UNIT 1 (Royal Guard) "$({X}-1)" "$({Y}-(1-$n))" Clogrin _"Clogrin" (facing=nw)}
Expand Down
Expand Up @@ -711,7 +711,7 @@

[event]
name=time over

[unit]
type=Paladin
side=3
Expand All @@ -728,7 +728,7 @@
{GENERIC_UNIT 3 (Paladin) 32 26} {FACING nw}
{GENERIC_UNIT 3 (Mage of Light) 33 27} {FACING nw}
{GENERIC_UNIT 3 (Mage of Light) 34 26} {FACING nw}

[message]
speaker=Telemon
message= _ "Foul necromancer! Your time has come!"
Expand Down
20 changes: 10 additions & 10 deletions data/campaigns/Descent_Into_Darkness/utils/macros.cfg
Expand Up @@ -248,15 +248,15 @@
#enddef

#define SET_GOT_INSIDE_MANOR
{MODIFY_UNIT (
side=1
{NOT_ON_RECALL_LIST}
[not]
id=Malin Keshar
{MODIFY_UNIT (
side=1
{NOT_ON_RECALL_LIST}
[not]
id=Malin Keshar

[or]
id=Darken Volk
[/or]
[/not]
) variables.got_inside_manor yes}
[or]
id=Darken Volk
[/or]
[/not]
) variables.got_inside_manor yes}
#enddef
Expand Up @@ -645,7 +645,7 @@
# A denizen of caves answers Konrad's question.
[message]
race=dwarf
# po: "sowl" is a rare word synonymous with "sully", meaning "contaminate".
# po: "sowl" is a rare word synonymous with "sully", meaning "contaminate".
# po: "toiled" means "difficult, requires effort".
message=_ "Lord Konrad, yon rumble was made by nae living creature. ’Tis the echoes o’ the very bedrock witherin’ and crumbling beneath us that we ’eard. Are ye nae feeling the heat redoubling? Is yer breath nae toiled for the ashes sowling the air? I beseech that we not tarry ’ere any more than we ha’ to, lest the forming abysses claim us."
[/message]
Expand Down
104 changes: 52 additions & 52 deletions data/campaigns/Heir_To_The_Throne/utils/intro.cfg
@@ -1,56 +1,56 @@
#textdomain wesnoth-httt

#define HTTT_INTRO
[story]
[part]
music=revelation.ogg
story= _ "In the twenty-eighth year of the reign of Garard II, king of Wesnoth, the kingdom was plunged into a bitter war with the Orcs of the North."
{HTTT_BIGMAP}
[/part]
[part]
# wmllint: local spelling Galcadar
story= _ "The Northern host encamped at Galcadar, by the ford of Abez, and the king led his forces to meet them. Splitting his army in two, he led one half while his son, the crown prince Eldred, led the other."
background=story/httt_story1.jpg
[/part]
[part]
story= _ "Eldred was a brave and courageous warrior, able to lead his soldiers well. Unfortunately for Garard, his son was also ambitious... and treacherous. In the heat of battle, Eldred’s men turned on the king. And so, Garard was slain in battle that day, along with his brother and all his sons but Eldred."
background=story/httt_story2.jpg
[/part]
[part]
story= _ "Garard’s queen, Asheviere, looked on with glee, having come to watch the battle from a nearby hill. The rule of her son would surely satisfy her lust for power far better than her husband’s had."
background=story/httt_story3.jpg
[/part]
[part]
story= _ "In exchange for tribute, the warlord of the North happily made peace with Eldred, who proclaimed himself king and led his army south towards Weldyn."
{HTTT_BIGMAP}
[/part]
[part]
story= _ "But Garard’s arch-mage, Delfador, had escaped the battle and, riding with haste, reached Weldyn first. He mustered a force of loyalists to fight Eldred and avenge the king’s death. The loyalist army marched north to meet Eldred."
background=story/httt_story4.jpg
[/part]
[part]
story= _ "Eldred made war upon Delfador and his forces with his mother’s advice ringing in his ears: <i>“Fight no one great or small except the old mage, whose head should be severed from his shoulders.”</i>"
background=story/httt_story4.jpg
[/part]
[part]
story= _ "And Eldred did indeed meet Delfador face-to-face in battle, in the hinterlands near Tath. Sword clashed against staff, as the wise old mage fought the brash young warrior."
background=story/httt_story5.jpg
[/part]
[part]
story= _ "In the end Delfador’s men were defeated and routed, but Asheviere found her son’s lifeless body, fixed to the ground by the great mage’s staff."
background=story/httt_story6.jpg
[/part]
[part]
story= _ "Asheviere herself then took command of the army and led it back to Weldyn. Knowing that the king’s young nephews were next in line to the throne, she ordered them all killed, and declared herself Queen of Wesnoth."
{HTTT_BIGMAP}
[/part]
[part]
story= _ "Soon after news of Asheviere’s orders reached Delfador, he secretly entered the palace and stole away Konrad, the youngest of Garard’s nephews, thereby saving him from death."
background=story/httt_story7.jpg
[/part]
[part]
story= _ "Fleeing to the Aethenwood beyond the south-western border of Wesnoth, Delfador raised the child Konrad under the protection of the Elves, watching sadly as Asheviere’s reign of terror over the land began..."
background=story/httt_story8.jpg
[/part]
[/story]
[story]
[part]
music=revelation.ogg
story= _ "In the twenty-eighth year of the reign of Garard II, king of Wesnoth, the kingdom was plunged into a bitter war with the Orcs of the North."
{HTTT_BIGMAP}
[/part]
[part]
# wmllint: local spelling Galcadar
story= _ "The Northern host encamped at Galcadar, by the ford of Abez, and the king led his forces to meet them. Splitting his army in two, he led one half while his son, the crown prince Eldred, led the other."
background=story/httt_story1.jpg
[/part]
[part]
story= _ "Eldred was a brave and courageous warrior, able to lead his soldiers well. Unfortunately for Garard, his son was also ambitious... and treacherous. In the heat of battle, Eldred’s men turned on the king. And so, Garard was slain in battle that day, along with his brother and all his sons but Eldred."
background=story/httt_story2.jpg
[/part]
[part]
story= _ "Garard’s queen, Asheviere, looked on with glee, having come to watch the battle from a nearby hill. The rule of her son would surely satisfy her lust for power far better than her husband’s had."
background=story/httt_story3.jpg
[/part]
[part]
story= _ "In exchange for tribute, the warlord of the North happily made peace with Eldred, who proclaimed himself king and led his army south towards Weldyn."
{HTTT_BIGMAP}
[/part]
[part]
story= _ "But Garard’s arch-mage, Delfador, had escaped the battle and, riding with haste, reached Weldyn first. He mustered a force of loyalists to fight Eldred and avenge the king’s death. The loyalist army marched north to meet Eldred."
background=story/httt_story4.jpg
[/part]
[part]
story= _ "Eldred made war upon Delfador and his forces with his mother’s advice ringing in his ears: <i>“Fight no one great or small except the old mage, whose head should be severed from his shoulders.”</i>"
background=story/httt_story4.jpg
[/part]
[part]
story= _ "And Eldred did indeed meet Delfador face-to-face in battle, in the hinterlands near Tath. Sword clashed against staff, as the wise old mage fought the brash young warrior."
background=story/httt_story5.jpg
[/part]
[part]
story= _ "In the end Delfador’s men were defeated and routed, but Asheviere found her son’s lifeless body, fixed to the ground by the great mage’s staff."
background=story/httt_story6.jpg
[/part]
[part]
story= _ "Asheviere herself then took command of the army and led it back to Weldyn. Knowing that the king’s young nephews were next in line to the throne, she ordered them all killed, and declared herself Queen of Wesnoth."
{HTTT_BIGMAP}
[/part]
[part]
story= _ "Soon after news of Asheviere’s orders reached Delfador, he secretly entered the palace and stole away Konrad, the youngest of Garard’s nephews, thereby saving him from death."
background=story/httt_story7.jpg
[/part]
[part]
story= _ "Fleeing to the Aethenwood beyond the south-western border of Wesnoth, Delfador raised the child Konrad under the protection of the Elves, watching sadly as Asheviere’s reign of terror over the land began..."
background=story/httt_story8.jpg
[/part]
[/story]
#enddef
8 changes: 4 additions & 4 deletions data/campaigns/Liberty/scenarios/03_A_Strategy_Of_Hope.cfg
Expand Up @@ -207,10 +207,10 @@
speaker=Relana
message= _ "I agree. But, Baldras, what will you tell him? We know something has been going badly wrong in Wesnoth of late, that more than ordinary corruption and incompetence is afoot. But when the effects fall on mere peasants, the wrong of it may not seem so obvious from a noble’s chair."
[/message]
[sound]
name=ambient/wardrums.ogg
repeat=3
[/sound]
[sound]
name=ambient/wardrums.ogg
repeat=3
[/sound]
[message]
speaker=Baldras
message= _ "We need evidence. Hard evidence... but wait— Are those orcish war drums I hear?"
Expand Down
Expand Up @@ -124,7 +124,6 @@
[event]
name=prestart


[set_variable]
name=incominggold
value=5000
Expand Down
6 changes: 3 additions & 3 deletions data/campaigns/Son_Of_The_Black_Eye/utils/utils.cfg
Expand Up @@ -201,8 +201,8 @@
#enddef

#define ENABLE_AI_COMMAND_CA_TRANSPORT_S6
[lua]
code = <<
[lua]
code = <<
local helper = wesnoth.require "helper"

function wesnoth.custom_synced_commands.ship_unload(cfg)
Expand All @@ -226,5 +226,5 @@ function wesnoth.custom_synced_commands.ship_unload(cfg)
end

>>
[/lua]
[/lua]
#enddef
Expand Up @@ -214,7 +214,6 @@
{WILDTHING 27 14}
[/event]


#ifdef EASY
# Compensate that you get less experience points on easy.
[event]
Expand Down
Expand Up @@ -315,7 +315,6 @@
message= _ "Aye. Karrag, calling his troops to battle. Only the Dark Gods know what hellspawn the lich will summon. AXES UP!"
[/message]


{REPLACE_SCENARIO_MUSIC knalgan_theme.ogg}
{APPEND_MUSIC siege_of_laurelmor.ogg}
{APPEND_MUSIC underground.ogg}
Expand Down
Expand Up @@ -707,8 +707,6 @@
[/message]
[/event]



# Victory - The bandits are defeated.

[event]
Expand Down
Expand Up @@ -546,7 +546,7 @@
{VARIABLE EthilielV.x recall}
{VARIABLE EthilielV.y recall}
{CLEAR_VARIABLE EthilielV.modifications}

[set_variables]
name=EthilielV.modifications
mode=insert
Expand All @@ -555,9 +555,9 @@
{TRAIT_QUICK}
[/value]
[/set_variables]
{CLEAR_VARIABLE EthilielV.upkeep}

{CLEAR_VARIABLE EthilielV.upkeep}

[unstore_unit]
variable=EthilielV
[/unstore_unit]
Expand Down
Expand Up @@ -128,8 +128,7 @@
{VARIABLE secret_path.x 18}
{VARIABLE secret_path.y 35}


# the first undead will spawn on this turn+1 (i.e. turn {6 5 4})
# the first undead will spawn on this turn+1 (i.e. turn {6 5 4})
#ifdef EASY
{VARIABLE first_undead_spawn_turn 5}
#endif
Expand Down
Expand Up @@ -95,8 +95,8 @@
recruit=Bone Shooter,Deathblade,Ghoul,Revenant,Blood Bat,Dark Adept
#endif

# decrease Mebrin's moves so he doesn't run around too much
# also make him weaker
# decrease Mebrin's moves so he doesn't run around too much
# also make him weaker
[modifications]
[object]
[effect]
Expand Down Expand Up @@ -296,7 +296,7 @@
{NAMED_LOYAL_UNIT 2 (Necromancer) 20 27 (Mal Maul) (_"Mal Maul")} {GUARDIAN}
#endif

# trolls
# trolls

#ifdef EASY
{LOYAL_UNIT 5 (Troll) 5 17} {GUARDIAN}
Expand Down Expand Up @@ -614,7 +614,6 @@
[/redraw]
[/event]


# Confrontation with Mal Brin
[event]
name=sighted
Expand Down Expand Up @@ -826,7 +825,6 @@
[/message]
[/event]


[event]
name=last breath
[filter]
Expand Down
Expand Up @@ -138,7 +138,6 @@
{NAMED_LOYAL_UNIT 1 (Heavy Infantryman) 11 11 (Rheban) (_"Rheban")}
{NAMED_LOYAL_UNIT 1 (Bowman) 10 10 (Jul) (_"Jul")}


# Lt. Meris' Section

{NAMED_LOYAL_UNIT 1 (Lieutenant) 21 10 (Meris) (_"Meris")}
Expand Down Expand Up @@ -190,7 +189,6 @@
{LOYAL_UNIT 2 (Blood Bat) 32 10}
#endif


{MODIFY_UNIT x,y=16-33,1-25 facing sw}

{CLEAR_VARIABLE stored_side_1}
Expand Down
Expand Up @@ -373,7 +373,6 @@
{STARTING_VILLAGES 2 5}
{STARTING_VILLAGES 3 5}


# Start
[event]
name=start
Expand Down
3 changes: 1 addition & 2 deletions data/campaigns/The_South_Guard/scenarios/09a_Vengeance.cfg
Expand Up @@ -79,7 +79,6 @@
{NAMED_GENERIC_UNIT 1 (Bowman) 19 12 () (_"Westin Guard")}
{NAMED_GENERIC_UNIT 1 (Lieutenant) 19 11 () (_"Westin Guard")}
#endif

[/side]

{STARTING_VILLAGES 1 15}
Expand Down Expand Up @@ -282,7 +281,7 @@
y=8 ,8 ,8 ,8 ,8 ,8 ,8 ,8 ,8 ,8 ,7 ,7 ,6 ,6
[/move_unit_fake]

[music]
[music]
name=the_city_falls.ogg
immediate=yes
append=no
Expand Down
Expand Up @@ -469,7 +469,7 @@
{CLEAR_VARIABLE tents}
{CLEAR_VARIABLE rally_chance}

# depending on what units rally, and where, player can lose a village to the north champion purely to RNG, this scout can block that without being too wonderful otherwise
# depending on what units rally, and where, player can lose a village to the north champion purely to RNG, this scout can block that without being too wonderful otherwise
#ifndef HARD
[recall]
type=Quenoth Scout
Expand Down
Expand Up @@ -93,15 +93,15 @@
hide_help=yes
do_not_list=yes
[abilities]
[regenerate]
value=100
id=regenerates_yec
name= _ "alien regenerates"
female_name= _ "female^alien regenerates"
description= _ "The unit will heal itself 100 HP per turn. If it is poisoned, it will remove the poison instead of healing."
affect_self=yes
poison=cured
[/regenerate]
[regenerate]
value=100
id=regenerates_yec
name= _ "alien regenerates"
female_name= _ "female^alien regenerates"
description= _ "The unit will heal itself 100 HP per turn. If it is poisoned, it will remove the poison instead of healing."
affect_self=yes
poison=cured
[/regenerate]
[/abilities]
[/unit_type]

Expand Down

0 comments on commit dc71359

Please sign in to comment.