Skip to content
Snippets Groups Projects
npcs.lua 1.92 KiB
Newer Older
dg's avatar
dg committed
-- ToME - Tales of Middle-Earth
-- 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

dg's avatar
dg committed
load("/data/general/npcs/orc.lua")

local Talents = require("engine.interface.ActorTalents")

dg's avatar
dg committed
newEntity{ base="BASE_NPC_ORC", define_as = "UKRUK",
dg's avatar
dg committed
	unique = true,
	name = "Ukruk the Fierce",
dg's avatar
dg committed
	faction = "orc-pride",
dg's avatar
dg committed
	color=colors.VIOLET,
	desc = [[This ugly orc looks really nasty and vicious. He is obviously looking for something and bears an unkown symbol on his shield.]],
	level_range = {30, 50}, exp_worth = 2,
	max_life = 1500, life_rating = 15, fixed_rating = true,
dg's avatar
dg committed
	rank = 4,
dg's avatar
dg committed
	size_category = 3,
	infravision = 20,
dg's avatar
dg committed

dg's avatar
dg committed
	stun_immune = 1,
	blind_immune = 1,
	combat_spellresist = 70,
	combat_mentalresist = 70,
	combat_physresist = 70,

dg's avatar
dg committed
	resolvers.equip{
		{type="weapon", subtype="longsword", ego_chance=100, autoreq=true},
		{type="armor", subtype="shield", ego_chance=100, autoreq=true},
	},
dg's avatar
dg committed

	resolvers.talents{
dg's avatar
dg committed
		[Talents.T_SWORD_MASTERY]=10, [Talents.T_ASSAULT]=5, [Talents.T_OVERPOWER]=5, [Talents.T_RUSH]=5,
dg's avatar
dg committed
	},
	combat_atk = 1000,
dg's avatar
dg committed

dg's avatar
dg committed
	autolevel = "warrior",
dg's avatar
dg committed
	ai = "dumb_talented_simple", ai_state = { talent_in=1, ai_move="move_astar", },

	on_die = function(self, who)
		game.player:resolveSource():hasQuest("staff-absorption"):killed_ukruk(game.player:resolveSource())
	end,
dg's avatar
dg committed
}