-
Notifications
You must be signed in to change notification settings - Fork 47
/
upgrade.lua
255 lines (227 loc) · 13.2 KB
/
upgrade.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
-- _________ __ __
-- / _____// |_____________ _/ |______ ____ __ __ ______
-- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
-- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
-- /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
-- \/ \/ \//_____/ \/
-- ______________________ ______________________
-- T H E W A R B E G I N S
-- Stratagus - A free fantasy real time strategy game engine
--
-- (c) Copyright 2013-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-dwarven-broad-axe", {
Parent = "upgrade-broad-axe",
Icon = "icon-dwarven-broad-axe",
Civilization = "dwarf",
Description = "Dwarven smiths work hard at their craft to improve soldiers' weapons, and with the perfecting of smithing techniques the broadening of axe blades becomes possible.\n\nEffect: +2 Damage for Axefighters and Yale Riders. Allows Broad Axes to be sold at the Market.",
Item = "unit-broad-axe"
})
DefineUpgrade("upgrade-dwarven-great-axe", {
Parent = "upgrade-great-axe",
Icon = "icon-dwarven-great-axe",
Civilization = "dwarf",
RequirementsString = "Broad Axe and Ironworking",
Description = "Further innovations in dwarven smithing allow axes to be made sturdier, and often to carry double blades.\n\nEffect: +2 Damage for Axefighters and Yale Riders. Allows Great Axes to be sold at the Market.",
Item = "unit-great-axe"
})
DefineUpgrade("upgrade-dwarven-long-spear", {
Parent = "upgrade-long-spear",
Civilization = "dwarf",
Description = "With the lengthening of spear shafts, soldiers who wield these weapons have greater reach against their enemies.\n\nEffect: +2 Damage for Guards. Allows Long Spears to be sold at the Market.",
Item = "unit-long-spear"
})
DefineUpgrade("upgrade-dwarven-pike", {
Parent = "upgrade-pike",
Civilization = "dwarf",
Description = "Much longer than previous spears, pikes can be deadly when used by disciplined groups of soldiers.\n\nEffect: +2 Damage for Guards. Allows Pikes to be sold at the Market.",
Item = "unit-pike"
})
DefineUpgrade("upgrade-dwarven-shield-1", {
Name = "Heater Shield",
Parent = "upgrade-bronze-shield",
Icon = "icon-dwarven-shield-2",
Civilization = "dwarf",
Description = "Earlier shields provided little more than a minimal degree of protection. With the development of heater shields, dwarven soldiers have a greater chance of survival in battle.\n\nEffect: +2 Armor for Axefighters, Guards and Yale Riders. Allows Heater Shields to be sold at the Market.",
Item = "unit-heater-shield"
})
DefineUpgrade("upgrade-dwarven-shield-2", {
Name = "Thrymgjol Shield",
Parent = "upgrade-iron-shield",
Icon = "icon-dwarven-shield-3",
Civilization = "dwarf",
RequirementsString = "Heater Shield and Ironworking",
Description = "As shield-making techniques improved, the creation of thrymgjol shields became possible. These shields receive their name from the impregnable gate crafted by the sons of the dwarf Solblindi, due to the mighty protection they give their users.\n\nEffect: +2 Armor for Axefighters, Guards and Yale Riders. Allows Thrymgjol Shields to be sold at the Market.",
Background = "The Thrymgjol gate and its makers, the sons of the dwarf Solblindi, are mentioned in the <a href='literary_text:svipdagsmol'>Svipdagsmol</a> of Norse mythology. The name \"Thrymgjol\" means \"loud-clanging\".",
Quote = "\"Thrymgjol they call it; 'twas made by the three,\nThe sons of Solblindi;\nAnd fast as a fetter the farer it holds,\nWhoever shall lift the latch.\"\n- Dwarven Traditional Poetry (The Warder)",
Item = "unit-thrymgjol-shield"
})
DefineUpgrade("upgrade-dwarven-sharp-throwing-axe", {
Name = "Sharp Throwing Axe",
Parent = "upgrade-ranged-projectile-1",
Icon = "icon-dwarven-sharp-throwing-axe",
Civilization = "dwarf",
Description = "As their craftsmanship progresses, dwarven artisans become capable of improving the basic throwing axe to have sharper blades.\n\nEffect: +2 Damage for Scouts, Gryphon Riders, Bastions and Guard Towers. Allows Sharp Throwing Axes to be sold at the Market.",
Weapon = true,
Item = "unit-sharp-throwing-axe"
})
DefineUpgrade("upgrade-dwarven-bearded-throwing-axe", {
Name = "Bearded Throwing Axe",
Parent = "upgrade-ranged-projectile-2",
Icon = "icon-dwarven-bearded-throwing-axe",
Civilization = "dwarf",
RequirementsString = "Sharp Throwing Axe and Ironworking",
Description = "The 'bearding' of throwing axes by extending the bottom of their blades is an innovation which makes them more deadly when thrown.\n\nEffect: +2 Damage for Scouts, Gryphon Riders, Bastions and Guard Towers. Allows Bearded Throwing Axes to be sold at the Market.",
Weapon = true,
Item = "unit-bearded-throwing-axe"
})
DefineUpgrade("upgrade-dwarven-ballista-bolt-1", {
Parent = "upgrade-broadhead-ballista-bolt",
Icon = "icon-dwarven-ballista-bolt-2",
Civilization = "dwarf",
Description = "While the earliest dwarven ballista bolts had been little more than tree trunks cut to have more penetrating effect, these bolts exhibit a broad metal head capable of slicing enemy foes and structures alike.\n\nEffect: +12 Damage for Ballistas, +5 Damage for Ballista Warships and Ballista Towers."
})
DefineUpgrade("upgrade-dwarven-ballista-bolt-2", {
Parent = "upgrade-penetrating-ballista-bolt",
Icon = "icon-dwarven-ballista-bolt-3",
Civilization = "dwarf",
Description = "Although the slicing power of broadhead ballista bolts was a great improvement over previous bolts, it was still far from ideal. Th penetrating ballista bolts instead do not slice their targets, but concentrate their might on a single point, maximizing puncturing power and thus their capability to breach enemy walls.\n\nEffect: +12 Damage for Ballistas, +5 Damage for Ballista Warships and Ballista Towers."
})
DefineUpgrade("upgrade-dwarven-alchemy", {
Parent = "upgrade-alchemy",
Civilization = "dwarf",
Description = "Once writing had been developed, observations on the basic substances that form the world could be noted down and more easily passed on. This led to the appearance of the discipline of alchemy, mixing esoteric, scientific and philosophical postulations about the elements from which the material world is composed.\n\nEffect: +1 Fire Damage for Scouts, Gryphon Riders, Bastions and Guard Towers, +4 Fire Damage for Ballistas and Ballista Warships. Allows new magic affixes for items sold at the Market. Allows potions and elixirs to be sold at the Market."
})
DefineModifier("upgrade-dwarven-broad-axe",
{"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-yale-rider"}, {"apply-to", "unit-dwarven-yale-lord"},
{"apply-to", "unit-joruvellir-yale-rider"}, {"apply-to", "unit-joruvellir-yale-lord"},
{"apply-to", "unit-brising-militia"},
{"apply-to", "unit-surghan-mercenary-axefighter"}, {"apply-to", "unit-surghan-mercenary-steelclad"}, {"apply-to", "unit-surghan-mercenary-thane"}
)
DefineModifier("upgrade-dwarven-great-axe",
{"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-yale-rider"}, {"apply-to", "unit-dwarven-yale-lord"},
{"apply-to", "unit-joruvellir-yale-rider"}, {"apply-to", "unit-joruvellir-yale-lord"},
{"apply-to", "unit-brising-militia"},
{"apply-to", "unit-surghan-mercenary-axefighter"}, {"apply-to", "unit-surghan-mercenary-steelclad"}, {"apply-to", "unit-surghan-mercenary-thane"}
)
DefineModifier("upgrade-dwarven-long-spear",
{"BasicDamage", 2},
{"Points", 10},
{"apply-to", "unit-dwarven-guard"}, {"apply-to", "unit-dwarven-stalwart"}, {"apply-to", "unit-dwarven-sentinel"}
)
DefineModifier("upgrade-dwarven-pike",
{"BasicDamage", 2},
{"Points", 10},
{"apply-to", "unit-dwarven-guard"}, {"apply-to", "unit-dwarven-stalwart"}, {"apply-to", "unit-dwarven-sentinel"}
)
DefineModifier("upgrade-dwarven-shield-1",
{"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-dwarven-yale-rider"}, {"apply-to", "unit-dwarven-yale-lord"},
{"apply-to", "unit-joruvellir-yale-rider"}, {"apply-to", "unit-joruvellir-yale-lord"},
{"apply-to", "unit-brising-militia"},
{"apply-to", "unit-surghan-mercenary-axefighter"}, {"apply-to", "unit-surghan-mercenary-steelclad"}, {"apply-to", "unit-surghan-mercenary-thane"}
)
DefineModifier("upgrade-dwarven-shield-2",
{"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-dwarven-yale-rider"}, {"apply-to", "unit-dwarven-yale-lord"},
{"apply-to", "unit-joruvellir-yale-rider"}, {"apply-to", "unit-joruvellir-yale-lord"},
{"apply-to", "unit-brising-militia"},
{"apply-to", "unit-surghan-mercenary-axefighter"}, {"apply-to", "unit-surghan-mercenary-steelclad"}, {"apply-to", "unit-surghan-mercenary-thane"}
)
DefineModifier("upgrade-dwarven-sharp-throwing-axe",
{"BasicDamage", 2},
{"Points", 10},
{"apply-to", "unit-dwarven-scout"}, {"apply-to", "unit-dwarven-pathfinder"}, {"apply-to", "unit-dwarven-explorer"}, {"apply-to", "unit_dwarven_gryphon_rider"},
{"apply-to", "unit-joruvellir-scout"}, {"apply-to", "unit-joruvellir-pathfinder"}, {"apply-to", "unit-joruvellir-explorer"},
{"apply-to", "unit-dwarven-stronghold"}, {"apply-to", "unit-dwarven-guard-tower"}
)
DefineModifier("upgrade-dwarven-bearded-throwing-axe",
{"BasicDamage", 2},
{"Points", 10},
{"apply-to", "unit-dwarven-scout"}, {"apply-to", "unit-dwarven-pathfinder"}, {"apply-to", "unit-dwarven-explorer"}, {"apply-to", "unit_dwarven_gryphon_rider"},
{"apply-to", "unit-joruvellir-scout"}, {"apply-to", "unit-joruvellir-pathfinder"}, {"apply-to", "unit-joruvellir-explorer"},
{"apply-to", "unit-dwarven-stronghold"}, {"apply-to", "unit-dwarven-guard-tower"}
)
DefineModifier("upgrade-dwarven-ballista-bolt-1",
{"BasicDamage", 12},
{"Points", 10},
{"apply-to", "unit-dwarven-ballista"}
)
DefineModifier("upgrade-dwarven-ballista-bolt-1",
{"BasicDamage", 5},
{"Points", 10},
{"apply-to", "unit-dwarven-ballista-warship"}, {"apply-to", "unit-dwarven-ballista-tower"}
)
DefineModifier("upgrade-dwarven-ballista-bolt-2",
{"BasicDamage", 12},
{"Points", 10},
{"apply-to", "unit-dwarven-ballista"}
)
DefineModifier("upgrade-dwarven-ballista-bolt-2",
{"BasicDamage", 5},
{"Points", 10},
{"apply-to", "unit-dwarven-ballista-warship"}, {"apply-to", "unit-dwarven-ballista-tower"}
)
DefineModifier("upgrade-dwarven-coinage",
{"improve-production", "copper", 10},
{"improve-production", "silver", 10},
{"improve-production", "gold", 10},
{"apply-to", "unit-dwarven-smithy"}, {"apply-to", "unit-brising-smithy"}
)
DefineModifier("upgrade-dwarven-coinage",
{"TradeCost", -5},
{"apply-to", "unit-dwarven-market"}
)
DefineModifier("upgrade-dwarven-runewriting",
{"ResearchSpeedBonus", 10},
{"apply-to", "unit-dwarven-town-hall"}, {"apply-to", "unit-dwarven-stronghold"},
{"apply-to", "unit-dwarven-barracks"},
{"apply-to", "unit-dwarven-lumber-mill"}, {"apply-to", "unit-dwarven-smithy"}, {"apply-to", "unit-brising-smithy"},
{"apply-to", "unit-dwarven-masons-shop"},
-- {"apply-to", "unit-dwarven-yale-pen"}, {"apply-to", "unit-joruvellir-yale-pen"},
-- {"apply-to", "unit-dwarven-market"},
{"apply-to", "unit-dwarven-temple"}, {"apply-to", "unit-dwarven-academy"}
-- {"apply-to", "unit_dwarven_dock"}
)
DefineModifier("upgrade-dwarven-alchemy",
{"FireDamage", 1},
{"Points", 10},
{"apply-to", "unit-dwarven-scout"}, {"apply-to", "unit-dwarven-pathfinder"}, {"apply-to", "unit-dwarven-explorer"}, {"apply-to", "unit_dwarven_gryphon_rider"},
{"apply-to", "unit-joruvellir-scout"}, {"apply-to", "unit-joruvellir-pathfinder"}, {"apply-to", "unit-joruvellir-explorer"},
{"apply-to", "unit-dwarven-stronghold"}, {"apply-to", "unit-dwarven-guard-tower"}
)
DefineModifier("upgrade-dwarven-alchemy",
{"FireDamage", 4},
{"Points", 5},
{"apply-to", "unit-dwarven-ballista"}, {"apply-to", "unit-dwarven-ballista-warship"}, {"apply-to", "unit-dwarven-ballista-tower"}
)