Skip to content
Snippets Groups Projects
maces.lua 2.78 KiB
Newer Older
dg's avatar
dg committed
-- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2014 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

dg's avatar
dg committed
newEntity{
	define_as = "BASE_MACE",
dg's avatar
dg committed
	slot = "MAINHAND", dual_wieldable = true,
dg's avatar
dg committed
	type = "weapon", subtype="mace",
	add_name = " (#COMBAT#)",
dg's avatar
dg committed
	display = "/", color=colors.SLATE, image = resolvers.image_material("mace", "metal"),
	moddable_tile = resolvers.moddable_tile("mace"),
dg's avatar
dg committed
	encumber = 3,
	rarity = 5,
	metallic = true,
dg's avatar
dg committed
	combat = { talented = "mace", damrange = 1.4, physspeed = 1, sound = {"actions/melee", pitch=0.6, vol=1.2}, sound_miss = {"actions/melee", pitch=0.6, vol=1.2}},
dg's avatar
dg committed
	desc = [[Blunt and deadly.]],
dg's avatar
dg committed
	randart_able = "/data/general/objects/random-artifacts/generic.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) },
dg's avatar
dg committed
}

newEntity{ base = "BASE_MACE",
dg's avatar
dg committed
	name = "iron mace", short_name = "iron",
dg's avatar
dg committed
	level_range = {1, 10},
	require = { stat = { str=11 }, },
	cost = 5,
dg's avatar
dg committed
	material_level = 1,
dg's avatar
dg committed
	combat = {
dg's avatar
dg committed
		dam = resolvers.rngavg(6,9),
		apr = 2,
		physcrit = 0.5,
		dammod = {str=1},
dg's avatar
dg committed
	},
}

newEntity{ base = "BASE_MACE",
dg's avatar
dg committed
	name = "steel mace", short_name = "steel",
dg's avatar
dg committed
	level_range = {10, 20},
	require = { stat = { str=16 }, },
dg's avatar
dg committed
	cost = 10,
dg's avatar
dg committed
	material_level = 2,
dg's avatar
dg committed
	combat = {
dg's avatar
dg committed
		dam = resolvers.rngavg(11,17),
		apr = 3,
		physcrit = 1,
		dammod = {str=1},
dg's avatar
dg committed
	},
}

newEntity{ base = "BASE_MACE",
dg's avatar
dg committed
	name = "dwarven-steel mace", short_name = "d.steel",
dg's avatar
dg committed
	level_range = {20, 30},
	require = { stat = { str=24 }, },
dg's avatar
dg committed
	cost = 15,
dg's avatar
dg committed
	material_level = 3,
dg's avatar
dg committed
	combat = {
dg's avatar
dg committed
		dam = resolvers.rngavg(22,28),
		apr = 4,
		physcrit = 1.5,
		dammod = {str=1},
dg's avatar
dg committed
	},
}

newEntity{ base = "BASE_MACE",
dg's avatar
dg committed
	name = "stralite mace", short_name = "stralite",
dg's avatar
dg committed
	level_range = {30, 40},
	require = { stat = { str=35 }, },
dg's avatar
dg committed
	cost = 25,
dg's avatar
dg committed
	material_level = 4,
dg's avatar
dg committed
	combat = {
dg's avatar
dg committed
		dam = resolvers.rngavg(33,40),
		apr = 5,
		physcrit = 2.5,
		dammod = {str=1},
dg's avatar
dg committed
	},
}

newEntity{ base = "BASE_MACE",
dg's avatar
dg committed
	name = "voratun mace", short_name = "voratun",
dg's avatar
dg committed
	level_range = {40, 50},
	require = { stat = { str=48 }, },
dg's avatar
dg committed
	cost = 35,
dg's avatar
dg committed
	material_level = 5,
dg's avatar
dg committed
	combat = {
dg's avatar
dg committed
		dam = resolvers.rngavg(43,48),
		apr = 6,
		physcrit = 3,
dg's avatar
dg committed
		dammod = {str=1},
	},
}