Skip to content
Snippets Groups Projects
wands.lua 2.5 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

newEntity{
	define_as = "BASE_WAND",
	type = "charm", subtype="wand",
dg's avatar
dg committed
	unided_name = "wand", id_by_type = true,
dg's avatar
dg committed
	display = "-", color=colors.WHITE, image = resolvers.image_material("wand", "wood"),
dg's avatar
dg committed
	encumber = 2,
dg's avatar
dg committed
	rarity = 12,
	add_name = "#CHARM# #CHARGES#",
dg's avatar
dg committed
	use_sound = "talents/spell_generic",
dg's avatar
dg committed
	desc = [[Magical wands are made by powerful Alchemists and Archmagi to store spells. Anybody can use them to release the spells.]],
dg's avatar
dg committed
	egos = "/data/general/objects/egos/wands.lua", egos_chance = { prefix=resolvers.mbonus(20, 5), },
dg's avatar
dg committed
	addons = "/data/general/objects/egos/wands-powers.lua",
	power_source = {arcane=true},
dg's avatar
dg committed
	randart_able = "/data/general/objects/random-artifacts/generic.lua",
	talent_cooldown = "T_GLOBAL_CD",
dg's avatar
dg committed
}

newEntity{ base = "BASE_WAND",
dg's avatar
dg committed
	name = "elm wand", short_name = "elm",
dg's avatar
dg committed
	color = colors.UMBER,
	level_range = {1, 10},
dg's avatar
dg committed
	cost = 1,
dg's avatar
dg committed
	material_level = 1,
	charm_power = resolvers.mbonus_material(15, 10),
dg's avatar
dg committed
}

newEntity{ base = "BASE_WAND",
dg's avatar
dg committed
	name = "ash wand", short_name = "ash",
dg's avatar
dg committed
	color = colors.UMBER,
	level_range = {10, 20},
dg's avatar
dg committed
	cost = 2,
dg's avatar
dg committed
	material_level = 2,
	charm_power = resolvers.mbonus_material(20, 20),
dg's avatar
dg committed
}

newEntity{ base = "BASE_WAND",
dg's avatar
dg committed
	name = "yew wand", short_name = "yew",
dg's avatar
dg committed
	color = colors.UMBER,
	level_range = {20, 30},
dg's avatar
dg committed
	cost = 3,
dg's avatar
dg committed
	material_level = 3,
	charm_power = resolvers.mbonus_material(25, 30),
dg's avatar
dg committed
}

newEntity{ base = "BASE_WAND",
dg's avatar
dg committed
	name = "elven-wood wand", short_name = "e.wood",
dg's avatar
dg committed
	color = colors.UMBER,
	level_range = {30, 40},
dg's avatar
dg committed
	cost = 4,
dg's avatar
dg committed
	material_level = 4,
	charm_power = resolvers.mbonus_material(30, 40),
dg's avatar
dg committed
}

newEntity{ base = "BASE_WAND",
dg's avatar
dg committed
	name = "dragonbone wand", short_name = "dargonbone",
dg's avatar
dg committed
	color = colors.UMBER,
	level_range = {40, 50},
dg's avatar
dg committed
	cost = 5,
dg's avatar
dg committed
	material_level = 5,
	charm_power = resolvers.mbonus_material(35, 50),
dg's avatar
dg committed
}