ID:263008
 
Code:
for(var/a in typesof(/obj/Weapons))
src.contents += new a


Problem description: The problem is that although it works, it adds the objects' type, Weapons to the contents too.

type /obj/Weapons/ instead of /Weapons
try
for(var/a in typesof(/obj/Weapons)-/obj/Weapons)
src.contents += new a