This is where the code starts - Most notably the new() line
CreateTrackers()
switch(src.Piece)
if("Rook")
var/X = 4
var/D = NORTH
while(0 < X)
var/obj/Tracker/A = new(src.loc)
walk(A,D)
D = turn(D, -90) ; X --
Object Code
obj
Tracker // Trackers - Used to determine where you can move
icon = 'Trackers.dmi'
density = 1
New(turf/T)
..()
src.Move(T)
Bump(A)
if(isturf(A))
src.loc = null
Click()
usr.loc = src.loc
usr.Move(usr.loc)
usr.ClearTrackers()
Turf code, just in case (because it's edited to work with this)
turf
Board
icon = 'Board.dmi'
density = 1
Entered(obj/O)
var/X = O.type
sleep(1) ; new X (src)
Problem description:
Okay, so I'm re-writing LotB from the ground up. This is what I've done so far.
The code sorta works. The issue is, when you click a turf, it treats the turf that you were just on as dense. I don't know if the game is confusing my location or what. If I spam Start() (Which moves me to other locations), more and more turfs get this invisible density.