Skip to content
Snippets Groups Projects

Disarm Trap Talent

Merged Hachem_Muche requested to merge Hachem_Muche/t-engine4:DisarmTrapTalent into master
6 files
+ 59
59
Compare changes
  • Side-by-side
  • Inline
Files
6
  • Added a new talent "Disarm Trap" automatically learned with Heightened Senses at TL 3.
    This allows for actively disarming traps without moving over them, with the normal chance of triggering.
    Automatic trap detection will not trigger on forced moves.
@@ -1324,7 +1324,7 @@ function _M:move(x, y, force)
self.did_energy = nil
-- Try to detect traps
if self:knowTalent(self.T_HEIGHTENED_SENSES) then
if not force and self:knowTalent(self.T_HEIGHTENED_SENSES) then
local power = self:callTalent(self.T_HEIGHTENED_SENSES,"trapPower")
local grids = core.fov.circle_grids(self.x, self.y, 1, true)
for x, yy in pairs(grids) do for y, _ in pairs(yy) do
Loading