var/num = 0
for(var/obj/ore/O in usr)
num ++
if(num >= 2)
var/A = 0
do
usr.contents.Remove(/obj/ore)
A ++
while(A < 2)
else return
That's almost workable, except for one problem: /obj/ore is a type path, and thus won't exist in usr.contents; only atoms of that type will be there, which isn't the same thing.
That's almost workable, except for one problem: /obj/ore is a type path, and thus won't exist in usr.contents; only atoms of that type will be there, which isn't the same thing.
Lummox JR