Page 1 of 1

Bone Grab change

Posted: Fri Dec 31, 2010 5:11 am
by yufra
Currently bone grab finds any open tile near the player and places the grabbed creature there. I propose we change that so the grabbed creature is placed in the first tile along the line between the player and the creature's original tile. Here is the code to do that:

Code: Select all

local l = line.new(self.x, self.y, px, py)
local nx, ny = l()
if not nx then return end
This should work since the targeting is already a bolt and that tile needs to be open.