why is radiance doing radius 0?
Posted: Sat May 09, 2015 3:01 am
if i copy the talent code without changing it (must change name of course), it makes it have radius 0 instead of 3 that it usually starts with.
I looked a lot of places like in celestial class but failed to see what makes the talent start with radius 3 instead of 0.
original radiance code just renamed:
newTalent{
short_name = "X_LIGHT",
name = "4th Light Tesseract",
type = {"celestial/radiance", 1},
mode = "passive",
require = divi_req1,
points = 5,
radius = function(self, t) return self:combatTalentScale(t, 3, 7) end,
getResist = function(self, t) return self:combatTalentLimit(t, 100, 25, 75) end,
passives = function(self, t, p)
self:talentTemporaryValue(p, "radiance_aura", radianceRadius(self))
self:talentTemporaryValue(p, "blind_immune", t.getResist(self, t) / 100)
end,
info = function(self, t)
return ([[You are so infused with sunlight that your body glows permanently in radius %d, even in dark places.
Your vision adapts to this glow, giving you %d%% blindness resistance.
The light radius overrides your normal light if it is bigger (it does not stack).
]]):
format(radianceRadius(self), t.getResist(self, t))
end,
}
--
if illumination is added:
"All enemies in your Radiance aura have their invisibility and stealth power reduced by %d.
In addition, all actors affected by illumination are easier to see and therefore hit; their defense is reduced by %d and all evasion bonuses from being unseen are negated."
So since the PC is radiating light, the PC is easier to see, defense is reduced, invis and stealth and evasion negated.... Does this effect the PC??? I see some talents clearly state they make it so you cant stealth, and that makes sense if you are lit up like a lightbulb, but why would I want to lower my defense and evasion? and then with 0 radius, there is no one getting this curse but the PC!
I looked a lot of places like in celestial class but failed to see what makes the talent start with radius 3 instead of 0.
original radiance code just renamed:
newTalent{
short_name = "X_LIGHT",
name = "4th Light Tesseract",
type = {"celestial/radiance", 1},
mode = "passive",
require = divi_req1,
points = 5,
radius = function(self, t) return self:combatTalentScale(t, 3, 7) end,
getResist = function(self, t) return self:combatTalentLimit(t, 100, 25, 75) end,
passives = function(self, t, p)
self:talentTemporaryValue(p, "radiance_aura", radianceRadius(self))
self:talentTemporaryValue(p, "blind_immune", t.getResist(self, t) / 100)
end,
info = function(self, t)
return ([[You are so infused with sunlight that your body glows permanently in radius %d, even in dark places.
Your vision adapts to this glow, giving you %d%% blindness resistance.
The light radius overrides your normal light if it is bigger (it does not stack).
]]):
format(radianceRadius(self), t.getResist(self, t))
end,
}
--
if illumination is added:
"All enemies in your Radiance aura have their invisibility and stealth power reduced by %d.
In addition, all actors affected by illumination are easier to see and therefore hit; their defense is reduced by %d and all evasion bonuses from being unseen are negated."
So since the PC is radiating light, the PC is easier to see, defense is reduced, invis and stealth and evasion negated.... Does this effect the PC??? I see some talents clearly state they make it so you cant stealth, and that makes sense if you are lit up like a lightbulb, but why would I want to lower my defense and evasion? and then with 0 radius, there is no one getting this curse but the PC!