Skip to content
Snippets Groups Projects
mindstars.lua 3.62 KiB
Newer Older
dg's avatar
dg committed
-- Copyright (C) 2009, 2010, 2011, 2012 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{
	define_as = "BASE_MINDSTAR",
	slot = "MAINHAND", offslot = "OFFHAND",
	type = "weapon", subtype="mindstar",
	add_name = " (#COMBAT_DAMTYPE#)",
dg's avatar
dg committed
	display = "!", color=colors.LIGHT_RED, image = resolvers.image_material("mindstar", "nature"),
	moddable_tile = resolvers.moddable_tile("mindstar"),
dg's avatar
dg committed
	psiblade_tile = "mindstar_psiblade_%s_01",
dg's avatar
dg committed
	randart_able = "/data/general/objects/random-artifacts/melee.lua",
	encumber = 3,
	rarity = 4,
	power_source = {nature=true},
	combat = {
		wil_attack = true,
dg's avatar
dg committed
		no_offhand_penalty = true,
		talented = "mindstar",
		physspeed = 1,
		damrange = 1.1,
		sound = {"actions/melee", pitch=0.6, vol=1.2}, sound_miss = {"actions/melee", pitch=0.6, vol=1.2},
		damtype = resolvers.rngtable{DamageType.NATURE, DamageType.MIND},
	},
dg's avatar
dg committed
	desc = [[Mindstars are natural products. Natural gems covered in living matter, they are used to focus the mental powers of all nature defenders and psionics.
Using mindstars in the offhand does not incur the normal offhand damage penalty.]],
	egos = "/data/general/objects/egos/mindstars.lua", egos_chance = { prefix=resolvers.mbonus(40, 5), suffix=resolvers.mbonus(40, 5) },
}

newEntity{ base = "BASE_MINDSTAR",
	name = "mossy mindstar", short_name = "mossy",
	level_range = {1, 10},
	require = { stat = { wil=11 }, },
	cost = 5,
	material_level = 1,
	combat = {
		dam = resolvers.rngavg(2,3),
dg's avatar
dg committed
		apr = 12,
dg's avatar
dg committed
		dammod = {wil=0.3, cun=0.1},
	},
	wielder = {
		combat_mindpower = 1,
		combat_mindcrit = 1,
	},
}

newEntity{ base = "BASE_MINDSTAR",
	name = "vined mindstar", short_name = "vined",
	level_range = {10, 20},
	require = { stat = { wil=16 }, },
	cost = 10,
	material_level = 2,
	combat = {
		dam = resolvers.rngavg(4,6),
dg's avatar
dg committed
		apr = 18,
dg's avatar
dg committed
		dammod = {wil=0.35, cun=0.15},
dg's avatar
dg committed
		combat_mindpower = 2,
		combat_mindcrit = 2,
	},
}

newEntity{ base = "BASE_MINDSTAR",
dg's avatar
dg committed
	name = "thorny mindstar", short_name = "thorny",
	level_range = {20, 30},
	require = { stat = { wil=24 }, },
	cost = 15,
	material_level = 3,
	combat = {
		dam = resolvers.rngavg(7,10),
dg's avatar
dg committed
		apr = 24,
dg's avatar
dg committed
		dammod = {wil=0.4, cun=0.2},
dg's avatar
dg committed
		combat_mindpower = 3,
		combat_mindcrit = 3,
	},
}

newEntity{ base = "BASE_MINDSTAR",
dg's avatar
dg committed
	name = "pulsing mindstar", short_name = "pulsing",
	level_range = {30, 40},
	require = { stat = { wil=35 }, },
	cost = 25,
dg's avatar
dg committed
	material_level = 4,
	combat = {
		dam = resolvers.rngavg(12,14),
dg's avatar
dg committed
		apr = 32,
dg's avatar
dg committed
		dammod = {wil=0.45, cun=0.25},
	},
	wielder = {
		combat_mindpower = 4,
		combat_mindcrit = 4,
	},
}

newEntity{ base = "BASE_MINDSTAR",
	name = "living mindstar", short_name = "living",
	level_range = {40, 50},
	require = { stat = { wil=48 }, },
	cost = 35,
	material_level = 5,
	combat = {
		dam = resolvers.rngavg(15,18),
dg's avatar
dg committed
		apr = 40,
dg's avatar
dg committed
		dammod = {wil=0.5, cun=0.3},
	},
	wielder = {
		combat_mindpower = 5,
		combat_mindcrit = 5,
	},
}