Fixes a niche dufflebag issue (#19883)

* fixes chat issues

* removal fixes

* this
This commit is contained in:
S34N
2022-12-19 14:32:49 +00:00
committed by GitHub
parent ebf2d2b18f
commit d55f6d10da
6 changed files with 35 additions and 6 deletions
@@ -336,6 +336,9 @@
else
if(isstorage(I.loc))
var/obj/item/storage/S = I.loc
if(!S.removal_allowed_check(user))
return
S.remove_from_storage(I, src)
else if(ismob(I.loc))
var/mob/M = I.loc
@@ -203,6 +203,9 @@
return
else if(isstorage(O.loc))
var/obj/item/storage/S = O.loc
if(!S.removal_allowed_check(user))
return
S.remove_from_storage(O, src)
for(var/datum/seed_pile/N in piles) //this for loop physically hurts me
+2 -2
View File
@@ -249,8 +249,8 @@
//Mob can't equip it. Put it their backpack or toss it on the floor
if(isstorage(back))
var/obj/item/storage/S = back
//Now, B represents a container we can insert W into.
S.handle_item_insertion(W,1)
//Now, S represents a container we can insert W into.
S.handle_item_insertion(W, TRUE, TRUE)
return S
var/turf/T = get_turf(src)
+2
View File
@@ -98,6 +98,8 @@
if(isstorage(I))
var/obj/item/storage/S = I
if(!S.removal_allowed_check(user))
return
if((S.allow_quick_empty || S.allow_quick_gather) && S.contents.len)
S.hide_from(user)
user.visible_message("[user] empties \the [S] into \the [src].", "You empty \the [S] into \the [src].")