mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 05:00:55 +01:00
Fixes issues with packagewrap, trashbag, handlabeler, and other potential items that must have an effect when clicking a storage item. Clicking a storage item with those items does not try to insert them in the container but instead calls their afterattack effect directly. The var used for those items is var/no_direct_insertion.
Fixes trashbag not being able to pick up pillbottles, evidence bags. Fixes packagewrap not being able to wrap backpacks, pillbottles, all sorts of bags. Fixes packagewrapping a locked lockbox showing "it's locked!" Backpack only make rustling noise if insertion is successful.
This commit is contained in:
@@ -14,6 +14,8 @@
|
||||
evidencebagEquip(I, user)
|
||||
|
||||
/obj/item/weapon/evidencebag/attackby(obj/item/I, mob/user, params)
|
||||
if(I.no_direct_insertion)
|
||||
return ..()
|
||||
if(evidencebagEquip(I, user))
|
||||
return 1
|
||||
|
||||
@@ -60,7 +62,7 @@
|
||||
add_overlay("evidence") //should look nicer for transparent stuff. not really that important, but hey.
|
||||
|
||||
desc = "An evidence bag containing [I]. [I.desc]"
|
||||
I.loc = src
|
||||
I.forceMove(src)
|
||||
w_class = I.w_class
|
||||
return 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user