Page 1 of 1

Help modifying a spell

Posted: Sat Sep 16, 2017 6:12 pm
by chaseface
can anyone help me out with editing the radius of a spell? I would like to reduce the radius of the "fireflash" spell at higher levels, I feel it gets too big and would like the damage of the spell to increase as normal, but keep the default level 1 radius. There are many entries such as this one... am I even looking in the correct file? 1.5.5 team file? Im not understanding where to edit the radius part to keep it from increasing as you put points in the talent from lvl 2-5

newTalent{
name = "Fireflash",
type = {"misc/misc",3},
points = 5,
cooldown = 20,
range = 15,
proj_speed = 4,
direct_hit = true,
requires_target = true,
action = function(self, t)
local tg = {type="ball", range=self:getTalentRange(t), radius=1 + self:getTalentLevelRaw(t), selffire=false, talent=t, display={particle="bolt_fire", trail="firetrail"}}
local x, y = self:getTarget(tg)
if not x or not y then return nil end
self:projectile(tg, x, y, DamageType.FIRE, rng.range(4, 8) * self:getTalentLevel(t), function(self, tg, x, y, grids)
game.level.map:particleEmitter(x, y, tg.radius, "fireflash", {radius=tg.radius, grids=grids, tx=x, ty=y})
end)
return true
end,
info = function(self, t)
return "Zoooshh!"
end,

Re: Help modifying a spell

Posted: Thu Sep 21, 2017 4:45 pm
by Micbran

Code: Select all

local tg = {... radius = 1 + self:getTalentLevelRaw(t)