Skip to content
Snippets Groups Projects
swords.lua 2.86 KiB
Newer Older
dg's avatar
dg committed
-- ToME - Tales of Maj'Eyal
dg's avatar
dg committed
-- Copyright (C) 2009, 2010, 2011, 2012 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{
dg's avatar
dg committed
	define_as = "BASE_LONGSWORD",
dg's avatar
dg committed
	slot = "MAINHAND", dual_wieldable = true,
dg's avatar
dg committed
	type = "weapon", subtype="longsword",
dg's avatar
dg committed
	add_name = " (#COMBAT#)",
dg's avatar
dg committed
	display = "/", color=colors.SLATE, image = resolvers.image_material("sword", "metal"),
	moddable_tile = resolvers.moddable_tile("sword"),
dg's avatar
dg committed
	encumber = 3,
dg's avatar
dg committed
	rarity = 5,
	metallic = true,
dg's avatar
dg committed
	combat = { talented = "sword", 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 = [[Sharp, long, and deadly.]],
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) },
dg's avatar
dg committed
}

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

dg's avatar
dg committed
newEntity{ base = "BASE_LONGSWORD",
dg's avatar
dg committed
	name = "steel longsword", 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(10,16),
		apr = 3,
		physcrit = 3,
		dammod = {str=1},
dg's avatar
dg committed
	},
}

newEntity{ base = "BASE_LONGSWORD",
dg's avatar
dg committed
	name = "dwarven-steel longsword", 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(20,26),
		apr = 4,
		physcrit = 3.5,
		dammod = {str=1},
dg's avatar
dg committed
	},
}

newEntity{ base = "BASE_LONGSWORD",
dg's avatar
dg committed
	name = "stralite longsword", 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(30,37),
		apr = 5,
		physcrit = 4.5,
		dammod = {str=1},
dg's avatar
dg committed
	},
}

newEntity{ base = "BASE_LONGSWORD",
dg's avatar
dg committed
	name = "voratun longsword", 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(40,45),
		apr = 6,
		physcrit = 5,
dg's avatar
dg committed
		dammod = {str=1},
	},
}