ToME: the Tales of Maj'Eyal
http://forums.te4.org/

Bone Grab change
http://forums.te4.org/viewtopic.php?f=46&t=23947
Page 1 of 1

Author:  yufra [ Fri Dec 31, 2010 5:11 am ]
Post subject:  Bone Grab change

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:
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.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/