Dispenser shells can be bulk filled from storage bags (#68302)

This commit is contained in:
Moose1002
2022-07-17 00:47:40 -04:00
committed by GitHub
parent 88f3dd5eb9
commit 4a05fc299f
+8 -2
View File
@@ -65,7 +65,7 @@
if(user.combat_mode || .)
return
if(item.w_class > max_weight)
if(item.w_class > max_weight && !istype(item, /obj/item/storage/bag))
balloon_alert(user, "item too big!")
return
@@ -73,8 +73,14 @@
balloon_alert(user, "at maximum capacity!")
return
add_item(item)
if(istype(item, /obj/item/storage/bag))
for(var/obj/item/bag_item in item.contents)
if(length(stored_items) >= capacity)
break
add_item(bag_item)
return
add_item(item)
/obj/structure/dispenser_bot/wrench_act(mob/living/user, obj/item/tool)
if(locked)