Code: Select all

```
newTalent{
name = "IVTest",
type = {"undead/ghoul", 1},
mode = "passive",
require = undeads_req1,
points = 5,
getInfra = function(self, t) return self:attr("infravision") or 0 end,
getVision = function(self, t) return math.floor((3 + self:getTalentLevel(t)) * (1+0.01*self:getCun(s))) end,
passives = function(self, t, p)
self:talentTemporaryValue(p, "infravision", math.min((t.getInfra + 4), t.getVision(self, t)))
end,
info = function(self, t)
return ([[Your infravision range is increased by 4 to a maximum of %d. The maximum range scales with Cunning. ]])
:format(t.getVision(self, t))
end,
}
```

This seems like it should be easy to do, and seems essential for quite a number of purposes - anyone can fill me in on how to do it? Thanks!