horror-corrupted.lua
7.38 KB
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
-- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2015 Nicolas Casalini
--
-- 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 3 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, see <http://www.gnu.org/licenses/>.
--
-- Nicolas Casalini "DarkGod"
-- darkgod@te4.org
local Talents = require("engine.interface.ActorTalents")
newEntity{
define_as = "BASE_NPC_CORRUPTED_HORROR",
type = "horror", subtype = "corrupted",
display = "h", color=colors.WHITE,
blood_color = colors.BLUE,
body = { INVEN = 10 },
autolevel = "warrior",
ai = "dumb_talented_simple", ai_state = { ai_move="move_complex", talent_in=3, },
faction = "horrors",
combat_armor = 0, combat_def = 0,
combat = { atk=2, dammod={str=0.6} },
-- max_life = resolvers.rngavg(30, 50),
stats = { str=16, con=16 },
infravision = 10,
rank = 2,
size_category = 3,
blind_immune = 1,
no_breath = 1,
}
newEntity{ base = "BASE_NPC_CORRUPTED_HORROR",
dredge = 1,
name = "dremling", color=colors.SLATE,
desc = "A small faceless humanoid with vaguely Dwarven features. Its waraxe and shield look battered, rusted, and generally in ill repair.",
level_range = {1, nil}, exp_worth = 1,
combat = { atk=6, dammod={str=0.6} },
max_life = resolvers.rngavg(30, 50),
rarity = 1,
rank = 2,
size_category = 2,
autolevel = "warrior",
open_door = true,
resists = { [DamageType.BLIGHT] = 20, [DamageType.DARKNESS] = 20, [DamageType.LIGHT] = - 20 },
body = { INVEN = 10, MAINHAND=1, OFFHAND=1, BODY=1, QUIVER=1 },
resolvers.drops{chance=20, nb=1, {} },
resolvers.drops{chance=60, nb=1, {type="money"} },
resolvers.equip{
{type="weapon", subtype="waraxe", autoreq=true},
{type="armor", subtype="shield", autoreq=true},
},
resolvers.talents{
[Talents.T_DWARF_RESILIENCE]={base=1, every=5, max=5},
},
resolvers.sustains_at_birth(),
}
newEntity{ base = "BASE_NPC_CORRUPTED_HORROR",
dredge = 1,
name = "drem", color=colors.DARK_SLATE_GRAY,
resolvers.nice_tile{image="invis.png", add_mos = {{image="npc/horror_corrupted_drem.png", display_h=2, display_y=-1}}},
desc = "A giant black-skinned humanoid covered in spikey scabrous deposits. Its face is featureless; its eyesockets, empty and hollow.",
level_range = {3, nil}, exp_worth = 1,
combat_armor = 4, combat_def = 0,
combat = { dam=resolvers.mbonus(45, 10), atk=2, apr=6, physspeed=2, dammod={str=0.8} },
max_life = resolvers.rngavg(120,140),
life_rating = 15,
life_regen = 2,
max_stamina = 90,
open_door = true,
rarity = 1,
rank = 2,
size_category = 4,
autolevel = "warrior",
resists = { [DamageType.FIRE] = -50 },
fear_immune = 1,
body = { INVEN = 10, MAINHAND=1, OFFHAND=1, BODY=1, QUIVER=1 },
resolvers.drops{chance=20, nb=1, {} },
resolvers.drops{chance=60, nb=1, {type="money"} },
resolvers.talents{
[Talents.T_CARBON_SPIKES]={base=1, every=7, max=6},
[Talents.T_STUN]={base=1, every=10, max=5},
},
resolvers.sustains_at_birth(),
}
newEntity{ base = "BASE_NPC_CORRUPTED_HORROR",
dredge = 1,
name = "drem master", color=colors.LIGHT_GREY,
desc = "A disfigured humanoid with vaguely Dwarven features dressed in patched-together and rusted mail armor. It seems to be in command of others, though its mouth is sewn shut.",
level_range = {3, nil}, exp_worth = 1,
combat = { atk=10, dammod={str=0.6} },
max_life = resolvers.rngavg(80, 120),
rarity = 3,
rank = 2,
size_category = 3,
autolevel = "warrior",
ai = "dumb_talented_simple", ai_state = { ai_move="move_complex", talent_in=1, },
hate_regen = 2,
open_door = true,
resists = { [DamageType.BLIGHT] = 20, [DamageType.DARKNESS] = 20, [DamageType.LIGHT] = - 20 },
body = { INVEN = 10, MAINHAND=1, OFFHAND=1, BODY=1, QUIVER=1 },
resolvers.drops{chance=20, nb=1, {} },
resolvers.drops{chance=60, nb=1, {type="money"} },
resolvers.equip{
{type="weapon", subtype="waraxe", autoreq=true},
{type="armor", subtype="shield", autoreq=true},
{type="armor", subtype="heavy", autoreq=true},
},
make_escort = {
{type="horror", subtype="corrupted", name="drem", number=1, no_subescort=true},
{type="horror", subtype="corrupted", name="dremling", number=2, no_subescort=true},
},
resolvers.talents{
[Talents.T_DWARF_RESILIENCE]={base=1, every=5, max=5},
[Talents.T_DREDGE_FRENZY]={base=1, every=10, max=5},
[Talents.T_DOMINATE]={base=1, every=5, max=5},
},
resolvers.sustains_at_birth(),
}
newEntity{ base = "BASE_NPC_CORRUPTED_HORROR",
name = "brecklorn", color=colors.PINK, -- gloom bat
desc = "A giant hairless bat with the face of a Dwarf twisted into a constant scream. Pustulant sores cover its malformed body, and your heart weakens as it nears.",
level_range = {1, nil}, exp_worth = 1,
combat = { atk=10, dammod={dex=0.6} },
combat_armor = 0, combat_def = 6,
max_life = resolvers.rngavg(10, 20),
rarity = 2,
rank = 2,
size_category = 3,
autolevel = "rogue",
ai = "tactical", ai_state = { talent_in=2, ai_move="move_astar", },
ai_tactic = resolvers.tactic "ranged",
global_speed_base = 1.2,
resists = { [DamageType.BLIGHT] = 50, [DamageType.DARKNESS] = 20, [DamageType.LIGHT] = - 20 },
resolvers.talents{
[Talents.T_SPIT_BLIGHT]={base=1, every=5, max=5},
[Talents.T_SHRIEK]={base=1, every=5, max=5},
[Talents.T_GLOOM]={base=1, every=5, max=5},
},
resolvers.sustains_at_birth(),
}
newEntity{ base = "BASE_NPC_CORRUPTED_HORROR",
name = "grannor'vor", color=colors.GREEN, -- acid slug
desc = "A large sluglike creature that moves slowly, leaving a trail of acid in its wake. Its head has strangely humanoid features.",
level_range = {2, nil}, exp_worth = 1,
combat = { dam=resolvers.levelup(5, 1, 0.6), atk=15, apr=5, damtype=DamageType.ACID },
combat_armor = 6, combat_def = 0,
max_life = resolvers.rngavg(40, 60),
rarity = 2,
rank = 2,
size_category = 3,
autolevel = "warrior",
global_speed_base = 0.8,
resists = { [DamageType.ACID] = 50, [DamageType.DARKNESS] = 20, [DamageType.LIGHT] = - 20 },
clone_on_hit = {min_dam_pct=15, chance=30},
resolvers.talents{
[Talents.T_CRAWL_ACID]={base=2, every=5, max=5},
[Talents.T_ACID_BLOOD]={base=1, every=5, max=5},
},
resolvers.sustains_at_birth(),
}
newEntity{ base = "BASE_NPC_CORRUPTED_HORROR",
name = "grannor'vin", color=colors.BLACK, -- shadow slug
desc = "A large sluglike creature with the face of a man. Shadows seem to be drawn to its massive form, and your light dims as it approaches.",
level_range = {2, nil}, exp_worth = 1,
combat = { dam=5, atk=15, apr=5, damtype=DamageType.DARKNESS },
combat_armor = 6, combat_def = 0,
max_life = resolvers.rngavg(40, 60),
hate_regen = 2,
rarity = 4,
rank = 2,
size_category = 4,
autolevel = "caster",
ai = "dumb_talented_simple", ai_state = { ai_move="move_complex", talent_in=2, },
global_speed_base = 0.8,
resists = { [DamageType.DARKNESS] = 50, [DamageType.LIGHT] = - 20 },
resolvers.talents{
[Talents.T_CALL_SHADOWS]={base=3, every=6, max=7},
[Talents.T_CREEPING_DARKNESS]={base=2, every=5, max=5},
[Talents.T_DARK_TORRENT]={base=1, every=5, max=5},
},
resolvers.sustains_at_birth(),
}