Skip to content
Snippets Groups Projects
knifes.lua 2.9 KiB
Newer Older
dg's avatar
dg committed
-- ToME - Tales of Maj'Eyal
dg's avatar
dg committed
-- Copyright (C) 2009, 2010, 2011, 2012, 2013 Nicolas Casalini
dg's avatar
dg committed
--
-- 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

newEntity{
	define_as = "BASE_KNIFE",
	slot = "MAINHAND", offslot = "OFFHAND",
	type = "weapon", subtype="dagger",
dg's avatar
dg committed
	add_name = " (#COMBAT#)",
dg's avatar
dg committed
	display = "/", color=colors.WHITE, image = resolvers.image_material("knife", "metal"),
	moddable_tile = resolvers.moddable_tile("dagger"),
dg's avatar
dg committed
	rarity = 5,
	metallic = true,
dg's avatar
dg committed
	combat = { talented = "knife", damrange = 1.3, physspeed = 1, sound = {"actions/melee", pitch=1.2, vol=1.2}, sound_miss = {"actions/melee", pitch=1.2, vol=1.2} },
dg's avatar
dg committed
	desc = [[Sharp, short and deadly.]],
	ego_bonus_mult = -0.2,
dg's avatar
dg committed
	randart_able = "/data/general/objects/random-artifacts/melee.lua",
dg's avatar
dg committed
	egos = "/data/general/objects/egos/weapon.lua", egos_chance = { prefix=resolvers.mbonus(40, 5), suffix=resolvers.mbonus(40, 5) },
}

newEntity{ base = "BASE_KNIFE",
dg's avatar
dg committed
	name = "iron dagger", short_name = "iron",
	level_range = {1, 10},
	require = { stat = { dex=11 }, },
	cost = 5,
dg's avatar
dg committed
	material_level = 1,
dg's avatar
dg committed
		dam = resolvers.rngavg(4,6),
		apr = 5,
		physcrit = 4,
		dammod = {dex=0.45,str=0.45},
	},
}

newEntity{ base = "BASE_KNIFE",
dg's avatar
dg committed
	name = "steel dagger", short_name = "steel",
	level_range = {10, 20},
	require = { stat = { dex=16 }, },
dg's avatar
dg committed
	cost = 10,
dg's avatar
dg committed
	material_level = 2,
dg's avatar
dg committed
		dam = resolvers.rngavg(8,12),
		apr = 6,
		physcrit = 5,
		dammod = {dex=0.45,str=0.45},
	},
}

newEntity{ base = "BASE_KNIFE",
dg's avatar
dg committed
	name = "dwarven-steel dagger", short_name = "d.steel",
	level_range = {20, 30},
	require = { stat = { dex=24 }, },
dg's avatar
dg committed
	cost = 15,
dg's avatar
dg committed
	material_level = 3,
dg's avatar
dg committed
		dam = resolvers.rngavg(14,22),
		apr = 7,
		physcrit = 6,
		dammod = {dex=0.45,str=0.45},
	},
}

newEntity{ base = "BASE_KNIFE",
dg's avatar
dg committed
	name = "stralite dagger", short_name = "stralite",
	level_range = {30, 40},
	require = { stat = { dex=35 }, },
dg's avatar
dg committed
	cost = 25,
dg's avatar
dg committed
	material_level = 4,
dg's avatar
dg committed
		dam = resolvers.rngavg(25,32),
		apr = 9,
		physcrit = 8,
		dammod = {dex=0.45,str=0.45},
	},
}

newEntity{ base = "BASE_KNIFE",
dg's avatar
dg committed
	name = "voratun dagger", short_name = "voratun",
	level_range = {40, 50},
	require = { stat = { dex=48 }, },
dg's avatar
dg committed
	cost = 35,
dg's avatar
dg committed
	material_level = 5,
dg's avatar
dg committed
		dam = resolvers.rngavg(36,40),
		apr = 9,
		physcrit = 10,
		dammod = {dex=0.45,str=0.45},