I have phase door rune at value 30% and resistance currently at 0%. I have gear that grants 35% out of phase bonus. I don't have Thread Walk (yet).
If I use teleport talent, I get def +35, resist all +35% and detrimental effects duration reduction of 35%.
If I use phase door rune, I get def +50, resist all +40%, and detrimental effects reduction of 60%.
The phase door rune values make no sense to me. And the code suggests that the three values should be the same, if I read it correctly:
Code: Select all
newInscription{
name = "Rune: Phase Door",
type = {"inscriptions/runes", 1},
points = 1,
is_spell = true,
is_teleport = true,
tactical = { ESCAPE = 2 },
action = function(self, t)
local data = self:getInscriptionData(t.short_name)
game.level.map:particleEmitter(self.x, self.y, 1, "teleport")
self:teleportRandom(self.x, self.y, data.range + data.inc_stat)
game.level.map:particleEmitter(self.x, self.y, 1, "teleport")
self:setEffect(self.EFF_OUT_OF_PHASE, data.dur or 3, {
defense=(data.power or data.range) + data.inc_stat * 3 + (self:attr("defense_on_teleport") or 0),
resists=(data.power or data.range) + data.inc_stat * 3 + (self:attr("resist_all_on_teleport") or 0),
effect_reduction=(data.power or data.range) + data.inc_stat * 3 + (self:attr("effect_reduction_on_teleport") or 0),
})
return true
end,
info = function(self, t)
local data = self:getInscriptionData(t.short_name)
local power = (data.power or data.range) + data.inc_stat * 3
return ([[Activate the rune to teleport randomly in a range of %d.
Afterwards you stay out of phase for %d turns. In this state all new negative status effects duration is reduced by %d%%, your defense is increased by %d and all your resistances by %d%%.]]):
format(data.range + data.inc_stat, data.dur or 3, power, power, power)
end,
short_info = function(self, t)
local data = self:getInscriptionData(t.short_name)
local power = (data.power or data.range) + data.inc_stat * 3
return ([[range %d; power %d; dur %d]]):format(data.range + data.inc_stat, power, data.dur or 3)
end,
}