// Comments added to explain
var/obj/dam/damage_num/first // Defining
first = new // Creation
var/mob/target = ref
target = target.loc
if(first) first.loc = target // Weird placing system which actually works brilliantly
Problem description:
I'm using a personally modified version of spuzzum's s_damage library, and it works great, and does whatever I want it to do. The problem is really, really, weird. I put objects in a grid, and these objects also change icon and flick. However, this doesn't happen (afaik) to my inventory items (which are also in a grid). So in the end, I'm left with blank icons in my Skillgrid.
The way I add the grid objects;
// I'm leaving out redundant code, so don't be surprised when you see unrelated errors.
var/skillpath = text2path("/obj/playerskill/[src.basejob]/[A]")
var/obj/playerskill/PS = new skillpath
src<<output(null,"skillgrid")
src<<output(PS,"skillgrid")
del(PS)
Inventory is like.. Exactly the same way, and also in a grid.
Paths; (Both of them flick)
/obj/dam/damage_num
/obj/playerskill/
/obj/whatever (Inventory)
Help pretty please? What the hell's going on?
Why the HELL does it output itself?!
Screenshot to clarify:
http://i161.photobucket.com/albums/t217/Mysame/wtfglitch.jpg