Commit 3df15b9b7072f54d3b7919e8ee435d3355c45d32

Authored by DarkGod
1 parent c8a7ab2d

sanity

... ... @@ -4320,6 +4320,7 @@ function _M:updateModdableTile()
4320 4320 table.insert(self.shimmer_particles_active, p)
4321 4321 end
4322 4322 end
  4323 + if not self.moddable_tile then return end
4323 4324
4324 4325 local base = "player/"..self.moddable_tile:gsub("#sex#", self.female and "female" or "male").."/"
4325 4326
... ...
... ... @@ -163,7 +163,7 @@ newTalent{
163 163 local _ _, x, y = self:canProject(tg, x, y)
164 164
165 165 local proj = throw(self, tg.range, 1, x, y, nil, nil, nil)
166   - proj.name = _t"Throwing Knife"
  166 + if proj then proj.name = _t"Throwing Knife" end
167 167
168 168 return true
169 169 end,
... ... @@ -255,7 +255,7 @@ newTalent{
255 255 local tgt, id = rng.table(tgts)
256 256 if tgt then
257 257 local proj = throw(self, self:getTalentRadius(t), t.getDamage(self,t), tgt.act.x, tgt.act.y, nil, nil, 1)
258   - proj.name = _t"Fan of Knives"
  258 + if proj then proj.name = _t"Fan of Knives" end
259 259 tgt.cnt = tgt.cnt + 1
260 260 print(("Fan of Knives #%d: target:%s (%s, %s) = %d"):format(count, tgt.act.name, tgt.act.x, tgt.act.y, tgt.cnt))
261 261 count = count - 1
... ... @@ -334,7 +334,7 @@ newTalent{
334 334 if #tgts <= 0 then return nil end
335 335 local a, id = rng.table(tgts)
336 336 local proj = throw(self, self:getTalentRange(t), 1, a.x, a.y, nil, nil, nil)
337   - proj.name = _t"Quickdraw Knife"
  337 + if proj then proj.name = _t"Quickdraw Knife" end
338 338 self.turn_procs.quickdraw = true
339 339 end,
340 340 info = function(self, t)
... ... @@ -379,7 +379,7 @@ newTalent{
379 379 local dam = t2.getDamage(self,t2)
380 380
381 381 local proj = throw(self, self:getTalentRange(t), dam, x, y, DamageType.NATURE, 1, nil)
382   - proj.name = _t"Venomous Throw"
  382 + if proj then proj.name = _t"Venomous Throw" end
383 383 self.talents_cd[self.T_VENOMOUS_STRIKE] = 8
384 384
385 385 return true
... ...
... ... @@ -3882,6 +3882,7 @@ newEffect{
3882 3882 eff.target:removeEffect(eff.target.EFF_FED_UPON, false, true)
3883 3883 end,
3884 3884 updateFeed = function(self, eff)
  3885 + if not eff then return end
3885 3886 local source = eff.src
3886 3887 local target = eff.target
3887 3888
... ...