Oh man, if that was the source of the infinite Enveil loop..Zaive wrote:talents = {
T_VILE_AIM = 1,
T_ENVEIL = 1,
T_UNNATURAL_BODY = 1,
T_CALL_SHADOWS = 1,
},
At least it doesn't break when starting up when it's like that.
I tried to fix a few things here and there. Mostly just description fixes. I'll post them up in a bit. Also, for some reason the forum refuses to indent the code even though it is in the edit box. Dunno what to do about that.
Twist the Veil: You need to define range inside the info function. Also remove the second % in %d%, since it'll make it expect another format variable.
Unveil: I posted above what I think it should look like (Completely untested though), but at least in the description the darkness damage %d%% should be changed to %0.2f (%d is whole numbers only, %0.2f goes to 2 decimal places and seems to be the norm for damage display, and %% makes the % sign actually show up in the description instead of being a format flag). The other %d% should be changed to %d, and the confusion power and turns needs to actually be added into the format.
Shadow Alliance:
change:
getCurrentIncrease = function(self, t)
if self:hasEffect(self.EFF_SHADOW_ALLIANCE) then
return self:hasEffect(self.EFF_SHADOW_ALLIANCE).power
else return 0
end
end,
At least changing it to that makes the game not break when trying to view its description, dunno about the actual skill effect.
In Actor.lua:
function _M:breakStealth()
if self:isTalentActive(self.T_ENVEIL) then
local chance = 0
if self:knowTalent(self.T_VEILED_THREAT) then
chance = self:callTalent(self.T_VEILED_THREAT,"getChance") + (self:getLck() - 50) * 0.2
end
-- Do not break stealth
if rng.percent(chance) then return end
self:forceUseTalent(self.T_ENVEIL, {ignore_energy=true})
self.changed = true
end
base_breakStealth(self)
end
The only thing that NEEDS to change to not break the game is base_breakStealth(self) at the end, but I think the other stuff *should* make Veiled Threat do what it's actually supposed to do. Not that I can actually make it work yet...
Anyways, I'll get on it tomorrow. I sorta stayed up waaay too late playing some Dark Souls 2, and now I've nearly been awake for 24 hours. Awesome catch, though! If this fixes the infinite Enveil loop, I will be eternally in your debt. :3