mob/proc/CheckOre(A)
switch(A)
if("Junk")
for(var/obj/stack/ore/junk/J in src)
return 1
return 0
is there a better way to check for an item in a player's contents than to use ugly procs like that?
ID:169302
Jul 8 2005, 4:01 am
|
|
mob/proc/CheckOre(A) is there a better way to check for an item in a player's contents than to use ugly procs like that? |
Jul 8 2005, 5:01 am
|
|
Just use locate().
|
In response to YMIHere
|
|
Thankee kindly, that helped me avoid a long switch...
PS nice abs =P |