mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-17 02:54:44 +01:00
Dispenser shells can be bulk filled from storage bags (#68302)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user