-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathupgrade_military_doctrines.lua
96 lines (90 loc) · 5.78 KB
/
upgrade_military_doctrines.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
-- _________ __ __
-- / _____// |_____________ _/ |______ ____ __ __ ______
-- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
-- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
-- /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
-- \/ \/ \//_____/ \/
-- ______________________ ______________________
-- T H E W A R B E G I N S
-- Stratagus - A free fantasy real time strategy game engine
--
-- (c) Copyright 2017-2022 by Andrettin
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
--
DefineUpgrade("upgrade-shield-wall", {
Name = "Shield Wall",
Icon = "icon-shield-wall",
Costs = {"time", 250, "copper", 2400},
Description = "The shield wall is a rectangular infantry formation in which soldiers hold their shields up for mutual protection.\n\nEffects: +2 Armor for infantry."
})
DefineUpgrade("upgrade-svinfylking", {
Name = "Svinfylking",
Icon = "icon-svinfylking",
Costs = {"time", 250, "copper", 2400},
Description = "The svinfylking is a wedge-shaped infantry formation in which soldiers hold their shields up for mutual protection. Due to its wedge-shaped nature, the formation can be quite effective in breaking enemy lines.\n\nEffects: +2 Damage for infantry."
})
DefineModifier("upgrade-shield-wall",
{"Armor", 2},
{"Points", 10},
{"apply-to", "unit-dwarven-militia"},
{"apply-to", "unit-dwarven-axefighter"}, {"apply-to", "unit-dwarven-steelclad"}, {"apply-to", "unit-dwarven-thane"},
{"apply-to", "unit-dwarven-guard"}, {"apply-to", "unit-dwarven-stalwart"}, {"apply-to", "unit-dwarven-sentinel"},
{"apply-to", "unit-brising-militia"},
{"apply-to", "unit-surghan-mercenary-axefighter"}, {"apply-to", "unit-surghan-mercenary-steelclad"}, {"apply-to", "unit-surghan-mercenary-thane"},
{"apply-to", "unit-germanic-warrior"}, {"apply-to", "unit-germanic-veteran-warrior"}, {"apply-to", "unit-germanic-chieftain"},
{"apply-to", "unit-germanic-spearman"},
{"apply-to", "unit-norse-swordsman"}, {"apply-to", "unit-norse-veteran-swordsman"}, {"apply-to", "unit-norse-heroic-swordsman"},
{"apply-to", "unit-teuton-swordsman"}, {"apply-to", "unit-teuton-veteran-swordsman"}, {"apply-to", "unit-teuton-heroic-swordsman"},
{"apply-to", "unit_suebi_swordsman"}, {"apply-to", "unit_suebi_veteran_swordsman"}, {"apply-to", "unit_suebi_chieftain"},
{"apply-to", "unit-frank-swordsman"}, {"apply-to", "unit-frank-veteran-swordsman"}, {"apply-to", "unit-frank-heroic-swordsman"},
{"apply-to", "unit-teuton-spearman"}, {"apply-to", "unit-frank-spearman"},
{"apply-to", "unit_gaulish_swordsman"}, {"apply-to", "unit_gaulish_veteran_swordsman"}, {"apply-to", "unit_gaulish_chieftain"},
{"apply-to", "unit-latin-legionary"}, {"apply-to", "unit-latin-veteran-legionary"}, {"apply-to", "unit-latin-centurion"},
{"apply-to", "unit-slavic-swordsman"},
{"apply-to", "unit-goblin-militia"},
{"apply-to", "unit-goblin-swordsman"}, {"apply-to", "unit-goblin-barbarian"}, {"apply-to", "unit-goblin-warlord"},
{"apply-to", "unit-goblin-spearman"},
{"apply-to", "unit-troll-warrior"}
)
DefineModifier("upgrade-shield-wall",
{"remove-upgrade", "upgrade-svinfylking"}
)
DefineModifier("upgrade-svinfylking",
{"BasicDamage", 2},
{"Points", 10},
{"apply-to", "unit-dwarven-militia"},
{"apply-to", "unit-dwarven-axefighter"}, {"apply-to", "unit-dwarven-steelclad"}, {"apply-to", "unit-dwarven-thane"},
{"apply-to", "unit-dwarven-guard"}, {"apply-to", "unit-dwarven-stalwart"}, {"apply-to", "unit-dwarven-sentinel"},
{"apply-to", "unit-brising-militia"},
{"apply-to", "unit-surghan-mercenary-axefighter"}, {"apply-to", "unit-surghan-mercenary-steelclad"}, {"apply-to", "unit-surghan-mercenary-thane"},
{"apply-to", "unit-germanic-warrior"}, {"apply-to", "unit-germanic-veteran-warrior"}, {"apply-to", "unit-germanic-chieftain"},
{"apply-to", "unit-germanic-spearman"},
{"apply-to", "unit-norse-swordsman"}, {"apply-to", "unit-norse-veteran-swordsman"}, {"apply-to", "unit-norse-heroic-swordsman"},
{"apply-to", "unit-teuton-swordsman"}, {"apply-to", "unit-teuton-veteran-swordsman"}, {"apply-to", "unit-teuton-heroic-swordsman"},
{"apply-to", "unit_suebi_swordsman"}, {"apply-to", "unit_suebi_veteran_swordsman"}, {"apply-to", "unit_suebi_chieftain"},
{"apply-to", "unit-frank-swordsman"}, {"apply-to", "unit-frank-veteran-swordsman"}, {"apply-to", "unit-frank-heroic-swordsman"},
{"apply-to", "unit-teuton-spearman"}, {"apply-to", "unit-frank-spearman"},
{"apply-to", "unit_gaulish_swordsman"}, {"apply-to", "unit_gaulish_veteran_swordsman"}, {"apply-to", "unit_gaulish_chieftain"},
{"apply-to", "unit-latin-legionary"}, {"apply-to", "unit-latin-veteran-legionary"}, {"apply-to", "unit-latin-centurion"},
{"apply-to", "unit-slavic-swordsman"},
{"apply-to", "unit-goblin-militia"},
{"apply-to", "unit-goblin-swordsman"}, {"apply-to", "unit-goblin-barbarian"}, {"apply-to", "unit-goblin-warlord"},
{"apply-to", "unit-goblin-spearman"},
{"apply-to", "unit-troll-warrior"}
)
DefineModifier("upgrade-svinfylking",
{"remove-upgrade", "upgrade-shield-wall"}
)