Newer
Older
-- Copyright (C) 2009, 2010, 2011, 2012, 2013 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
local Talents = require "engine.interface.ActorTalents"
newEntity{
define_as = "BASE_SLING",
slot = "MAINHAND",
type = "weapon", subtype="sling",
display = "}", color=colors.UMBER, image = resolvers.image_material("sling", "leather"),
moddable_tile = resolvers.moddable_tile("sling"),
combat = { talented = "sling", accuracy_effect = "mace", sound = "actions/sling", sound_miss = "actions/sling", },
require = { talent = { Talents.T_SHOOT }, },
proj_image = resolvers.image_material("shot_s", "metal"),
randart_able = "/data/general/objects/random-artifacts/ranged.lua",
egos = "/data/general/objects/egos/sling.lua", egos_chance = { prefix=resolvers.mbonus(40, 5), suffix=resolvers.mbonus(40, 5) },
range = 6,
range = 7,
range = 8,
range = 9,
range = 10,
add_name = " (#COMBAT_AMMO#)",
display = "{", color=colors.UMBER, image = resolvers.image_material("shot", "metal"),
combat = { talented = "sling", accuracy_effect = "mace", damrange = 1.2},
proj_image = resolvers.image_material("shot_s", "metal"),
randart_able = "/data/general/objects/random-artifacts/ammo.lua",
egos = "/data/general/objects/egos/ammo.lua", egos_chance = { prefix=resolvers.mbonus(40, 5), suffix=resolvers.mbonus(40, 5) },
resolvers.shooter_capacity(),
name = "pouch of iron shots", short_name = "iron",
dam = resolvers.rngavg(7,12),
apr = 1,
physcrit = 4,
dammod = {dex=0.7, cun=0.5},
name = "pouch of steel shots", short_name = "steel",
dam = resolvers.rngavg(15,22),
apr = 2,
physcrit = 4.5,
dammod = {dex=0.7, cun=0.5},
name = "pouch of dwarven-steel shots", short_name = "d.steel",
dam = resolvers.rngavg(28,37),
apr = 3,
physcrit = 5,
dammod = {dex=0.7, cun=0.5},
name = "pouch of stralite shots", short_name = "stralite",
dam = resolvers.rngavg(40,47),
apr = 5,
physcrit = 5.5,
dammod = {dex=0.7, cun=0.5},
name = "pouch of voratun shots", short_name = "voratun",
dam = resolvers.rngavg(50, 57),
apr = 6,
physcrit = 7,
dammod = {dex=0.7, cun=0.5},