Files
CHOMPStation2/code/_helpers/storage.dm
2016-10-25 21:40:28 +01:00

10 lines
300 B
Plaintext

/proc/create_objects_in_loc(var/atom/loc, var/list/item_paths)
if(!istype(loc))
CRASH("Inappropriate loction given.")
if(!istype(item_paths))
CRASH("Inappropriate item path list given.")
for(var/item_path in item_paths)
for(var/i = 1 to max(1, item_paths[item_path]))
new item_path(loc)