npcs.lua
2.35 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
-- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009, 2010 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
load("/data/general/npcs/gwelgoroth.lua", function(e) if e.rarity then e.derth_rarity, e.rarity = e.rarity, nil end end)
local Talents = require("engine.interface.ActorTalents")
newEntity{
define_as = "BASE_NPC_ELVALA_TOWN",
type = "humanoid", subtype = "dwarf",
display = "p", color=colors.WHITE,
faction = "iron-throne",
anger_emote = "Catch @himher@!",
combat = { dam=resolvers.rngavg(1,2), atk=2, apr=0, dammod={str=0.4} },
body = { INVEN = 10, MAINHAND=1, OFFHAND=1, BODY=1, QUIVER=1 },
lite = 3,
life_rating = 10,
rank = 2,
size_category = 3,
open_door = true,
resolvers.inscriptions(1, "rune"),
autolevel = "warrior",
ai = "dumb_talented_simple", ai_state = { ai_move="move_dmap", talent_in=3, },
energy = { mod=1 },
stats = { str=12, dex=8, mag=6, con=10 },
}
newEntity{ base = "BASE_NPC_ELVALA_TOWN",
name = "dwarven guard", color=colors.LIGHT_UMBER,
desc = [[A stocky dwarf, he looks angry.]],
level_range = {1, nil}, exp_worth = 1,
rarity = 3,
max_life = resolvers.rngavg(70,80),
resolvers.equip{
{type="weapon", subtype="battleaxe", autoreq=true},
},
combat_armor = 2, combat_def = 0,
resolvers.talents{ [Talents.T_RUSH]=1, [Talents.T_PERFECT_STRIKE]=1, },
}
newEntity{ base = "BASE_NPC_ELVALA_TOWN",
name = "dwarven earthwarden", color=colors.RED,
desc = [[A stocky dwarf, he looks angry.]],
level_range = {1, nil}, exp_worth = 1,
rarity = 3,
max_life = resolvers.rngavg(50,60),
ai_state = { talent_in=1, },
autolevel = "caster",
resolvers.inscriptions(3, "infusion"),
resolvers.talents{ [Talents.T_STONE_SKIN]=3, [Talents.T_STRIKE]=3, [Talents.T_BODY_OF_STONE]=3, },
}