List problem in Developer Help
|
|
var/list/l1[1] var/list/l2[1]
mob/verb/add_group_test(mob/m) if(!m in l1) l1.Add(m) else if(m in l1) l2.Add(m) while(1) for(var/mob/x in l1) for(var/mob/y in l2) if(src.loc==locate(12,6,1) && x in l1| y in l2) x.loc=locate(12,3,1) else if(src.loc==locate(12,6,1) && x in l1 && y in l2) x.loc=locate(12,3,1) y.loc=locate(11,9,1) sleep(10)
|
The problem is that it believes that there is no mob in the list when I have added it.
|