Merge pull request #2093 from Citadel-Station-13/upstream-merge-29401

[MIRROR] Ore satchels no longer have infinite capacity
This commit is contained in:
LetterJay
2017-07-23 06:52:26 -05:00
committed by GitHub
2 changed files with 10 additions and 1 deletions
+9 -1
View File
@@ -23,6 +23,7 @@
..()
/obj/item/weapon/ore/Crossed(atom/movable/AM)
set waitfor = FALSE
var/show_message = TRUE
for(var/obj/item/weapon/ore/O in loc)
if(O != src)
@@ -48,7 +49,14 @@
break
if(OB)
var/obj/structure/ore_box/box
OB.handle_item_insertion(src, TRUE, AM)
if(!OB.can_be_inserted(src, TRUE, AM))
if(!OB.spam_protection)
to_chat(AM, "<span class='warning'>Your [OB.name] is full and can't hold any more ore!</span>")
OB.spam_protection = TRUE
sleep(1)
OB.spam_protection = FALSE
else
OB.handle_item_insertion(src, TRUE, AM)
// Then, if the user is dragging an ore box, empty the satchel
// into the box.
var/mob/living/L = AM