Skip to content
Snippets Groups Projects
Commit f31a6c14 authored by dg's avatar dg
Browse files

plop

git-svn-id: http://svn.net-core.org/repos/t-engine4@1835 51575b47-30f0-44d4-a5cc-537603b46e54
parent 84c1c0fe
No related branches found
No related tags found
No related merge requests found
-- 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
-- last updated: 9:25 AM 2/5/2010
local Talents = require("engine.interface.ActorTalents")
newEntity{
define_as = "BASE_NPC_ELVEN_WARRIOR",
type = "humanoid", subtype = "elf",
display = "p", color=colors.UMBER,
combat = { dam=resolvers.rngavg(5,12), atk=2, apr=6, physspeed=2 },
body = { INVEN = 10, MAINHAND=1, OFFHAND=1, BODY=1, QUIVER=1 },
resolvers.drops{chance=20, nb=1, {} },
resolvers.drops{chance=10, nb=1, {type="money"} },
infravision = 20,
lite = 2,
life_rating = 11,
rank = 2,
size_category = 3,
open_door = true,
resolvers.talents{ [Talents.T_HEAVY_ARMOUR_TRAINING]=1, },
autolevel = "warrior",
ai = "dumb_talented_simple", ai_state = { ai_move="move_dmap", talent_in=3, },
energy = { mod=1 },
stats = { str=20, dex=8, mag=6, con=16 },
}
newEntity{ base = "BASE_NPC_ELVEN_WARRIOR",
name = "elven warrior", color=colors.LIGHT_UMBER,
desc = [[An elven warrior, clad in heavy armour.]],
level_range = {10, nil}, exp_worth = 1,
rarity = 1,
max_life = resolvers.rngavg(100,110),
resolvers.equip{
{type="weapon", subtype="waraxe", autoreq=true},
{type="armor", subtype="shield", autoreq=true},
{type="armor", subtype="heavy", autoreq=true},
},
combat_armor = 0, combat_def = 6,
resolvers.talents{ [Talents.T_SHIELD_PUMMEL]=2, },
}
newEntity{ base = "BASE_NPC_ELVEN_WARRIOR",
name = "elven elite warrior", color=colors.UMBER,
desc = [[An elven warrior, clad in heavy armour.]],
level_range = {15, nil}, exp_worth = 1,
rarity = 5,
rank = 3,
max_life = resolvers.rngavg(100,110),
resolvers.equip{
{type="weapon", subtype="waraxe", autoreq=true},
{type="armor", subtype="shield", autoreq=true},
{type="armor", subtype="heavy", autoreq=true},
},
combat_armor = 0, combat_def = 6,
resolvers.talents{
[Talents.T_SHIELD_PUMMEL]=2,
[Talents.T_ASSAULT]=3,
},
}
......@@ -17,8 +17,10 @@
-- Nicolas Casalini "DarkGod"
-- darkgod@te4.org
load("/data/general/npcs/thieves.lua", rarity(1))
load("/data/general/npcs/minor-demon.lua", rarity(1))
load("/data/general/npcs/thieve.lua", rarity(1))
load("/data/general/npcs/elven-demonologist.lua", rarity(1))
load("/data/general/npcs/elven-warrior.lua", rarity(1))
load("/data/general/npcs/minor-demon.lua", rarity(5))
load("/data/general/npcs/major-demon.lua", function(e) e.rarity = nil end)
local Talents = require("engine.interface.ActorTalents")
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment