mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 18:44:48 +01:00
Fixes a niche dufflebag issue (#19883)
* fixes chat issues * removal fixes * this
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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].")
|
||||
|
||||
Reference in New Issue
Block a user