From cfb953d169eca1ab76ff1df6678a7b7ed1a3cb5f Mon Sep 17 00:00:00 2001 From: orange <iwasrobots@hotmail.com> Date: Tue, 30 Apr 2019 17:29:27 +0700 Subject: [PATCH] remove vestigial code (pls don't break everything --- .../tome/data/talents/celestial/glyphs.lua | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/game/modules/tome/data/talents/celestial/glyphs.lua b/game/modules/tome/data/talents/celestial/glyphs.lua index 497807558d..c5414837ef 100644 --- a/game/modules/tome/data/talents/celestial/glyphs.lua +++ b/game/modules/tome/data/talents/celestial/glyphs.lua @@ -250,30 +250,6 @@ explosion_glyph = Trap.new{ glyphs[#glyphs+1] = explosion_glyph end if #glyphs < 1 then return nil end ---[[ - -- find a target - local tgts = {} - local grids = core.fov.circle_grids(self.x, self.y, self:getTalentRange(t), true) - for x, yy in pairs(grids) do for y, _ in pairs(grids[x]) do - local a = game.level.map(x, y, Map.ACTOR) - if a and self:reactionToward(a) < 0 then - tgts[#tgts+1] = a - end - end end - if #tgts < 1 then return nil end - ---target glyphs - local tg = self:getTalentTarget(t) - local target = rng.tableRemove(tgts) - local glyphgrids = {} - if not self:canProject(tg, target.x, target.y) then return end - self:project(tg, target.x, target.y, function(px, py) - if not ((px == x and py == y) or game.level.map:checkEntity(px, py, Map.TERRAIN, "block_move") or game.level.map(px, py, Map.TRAP)) then glyphgrids[#glyphgrids+1] = {x=px, y=py} end - end) - self.turn_procs.glyphs = 1 - local dam = self:spellCrit(t.getGlyphDam(self, t)) - local detDur = t.getDetDur(self, t) - ]] --get a random glyph from table local trap = rng.tableRemove(glyphs) --set cooldowns -- GitLab