-- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009, 2010, 2011 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

newEntity{
	power_source = {arcane=true},
	name = "燃烧的 ", prefix=true, instant_resolve=true,
	keywords = {flaming=true},
	level_range = {1, 50},
	rarity = 5,
	wielder = {
		ranged_project={[DamageType.FIRE] = resolvers.mbonus_material(25, 4, function(e, v) return v * 0.1 * 0.64 end)},
	},
}
newEntity{
	power_source = {arcane=true},
	name = "冰冷的 ", prefix=true, instant_resolve=true,
	keywords = {icy=true},
	level_range = {15, 50},
	rarity = 5,
	wielder = {
		ranged_project={[DamageType.ICE] = resolvers.mbonus_material(15, 4, function(e, v) return v * 0.1 * 0.7 end)},
	},
}
newEntity{
	power_source = {nature=true},
	name = "强酸的 ", prefix=true, instant_resolve=true,
	keywords = {acidic=true},
	level_range = {1, 50},
	rarity = 5,
	wielder = {
		ranged_project={[DamageType.ACID] = resolvers.mbonus_material(25, 4, function(e, v) return v * 0.1 * 0.7 end)},
	},
}
newEntity{
	power_source = {arcane=true},
	name = "电击的 ", prefix=true, instant_resolve=true,
	keywords = {shocking=true},
	level_range = {1, 50},
	rarity = 5,
	wielder = {
		ranged_project={[DamageType.LIGHTNING] = resolvers.mbonus_material(25, 4, function(e, v) return v * 0.1 * 0.7 end)},
	},
}
newEntity{
	power_source = {nature=true},
	name = "剧毒的 ", prefix=true, instant_resolve=true,
	keywords = {poisonous=true},
	level_range = {1, 50},
	rarity = 5,
	wielder = {
		ranged_project={[DamageType.POISON] = resolvers.mbonus_material(45, 6, function(e, v) return v * 0.1 * 0.5 end)},
	},
}

newEntity{
	power_source = {nature=true},
	name = "史莱姆的 ", prefix=true, instant_resolve=true,
	keywords = {slime=true},
	level_range = {10, 50},
	rarity = 5,
	wielder = {
		ranged_project={[DamageType.SLIME] = resolvers.mbonus_material(45, 6, function(e, v) return v * 0.1 * 0.9 end)},
	},
}

newEntity{
	power_source = {arcane=true},
	name = "元素的 ", prefix=true, instant_resolve=true,
	keywords = {elemental=true},
	level_range = {35, 50},
	greater_ego = 1,
	rarity = 25,
	wielder = {
		ranged_project={
			[DamageType.FIRE] = resolvers.mbonus_material(25, 4, function(e, v) return v * 0.1 * 0.7 * 0.3 end),
			[DamageType.ICE] = resolvers.mbonus_material(15, 4, function(e, v) return v * 0.1 * 0.7 * 0.3 end),
			[DamageType.ACID] = resolvers.mbonus_material(25, 4, function(e, v) return v * 0.1 * 0.7 * 0.3 end),
			[DamageType.LIGHTNING] = resolvers.mbonus_material(25, 4, function(e, v) return v * 0.1 * 0.7 * 0.3 end),
		},
	},
}

newEntity{
	power_source = {nature=true},
	name = " 风之", suffix=true, instant_resolve=true,
	keywords = {wind=true},
	level_range = {10, 50},
	rarity = 7,
	combat = {
		travel_speed = 200,
		atk = resolvers.mbonus_material(10, 3, function(e, v) return v * 0.1 * 0.5 end),
	},
}

newEntity{
	power_source = {technique=true},
	name = " 湮灭之", suffix=true,
	keywords = {['annihil.']=true},
	level_range = {1, 50},
	greater_ego = 1,
	cost = 1,
	rarity = 15,
	combat = {
		physcrit = 100,
	},
	-- Powerful but does not come in much quantity
	resolvers.generic(function(e)
		e.generate_stack = rng.range(5, 10)
	end),
}

newEntity{
	power_source = {technique=true},
	name = " 精确制导之", suffix=true,
	keywords = {unerring=true},
	level_range = {1, 50},
	greater_ego = 1,
	cost = 1,
	rarity = 15,
	combat = {
		atk = 500,
	},
	-- Powerful but does not come in much quantity
	resolvers.generic(function(e)
		e.generate_stack = rng.range(5, 10)
	end),
}
