Skip to content
Snippets Groups Projects
Commit eca87665 authored by dg's avatar dg
Browse files

troque of mindblast

git-svn-id: http://svn.net-core.org/repos/t-engine4@5066 51575b47-30f0-44d4-a5cc-537603b46e54
parent 9ccbac6c
No related branches found
No related tags found
No related merge requests found
......@@ -20,9 +20,8 @@
--[[
Torques
*psionic shield
psychoportation
clear mind
adrenaline rush
*psychoportation
*clear mind
mind wave
]]
......@@ -92,3 +91,20 @@ newEntity{
return {id=true, used=true}
end),
}
newEntity{
name = " of mindblast", addon=true, instant_resolve=true,
level_range = {15, 50},
rarity = 8,
charm_power_def = {add=45, max=300, floor=true},
resolvers.charm(function(self) return ("fire a blast of psionic energies in a beam (dam %d-%d)"):format(self:getCharmPower()/2, self:getCharmPower()) end, 6, function(self, who)
local tg = {type="beam", range=6 + who:getWil(4)}
local x, y = who:getTarget(tg)
if not x or not y then return nil end
local dam = self:getCharmPower()
who:project(tg, x, y, engine.DamageType.MIND, rng.avg(dam / 2, dam, 3), {type="mind"})
game.logSeen(who, "%s uses %s!", who.name:capitalize(), self:getName{no_count=true})
return {id=true, used=true}
end),
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment