mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-21 04:57:57 +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:
@@ -4,6 +4,8 @@
|
||||
icon = 'icons/obj/bureaucracy.dmi'
|
||||
icon_state = "labeler0"
|
||||
item_state = "flight"
|
||||
no_direct_insertion = 0
|
||||
flags = NOBLUDGEON
|
||||
var/label = null
|
||||
var/labels_left = 30
|
||||
var/mode = 0
|
||||
@@ -68,6 +70,7 @@
|
||||
user << "<span class='warning'>You don't have the dexterity to use [src]!</span>"
|
||||
return
|
||||
mode = !mode
|
||||
no_direct_insertion = !no_direct_insertion
|
||||
icon_state = "labeler[mode]"
|
||||
if(mode)
|
||||
user << "<span class='notice'>You turn on [src].</span>"
|
||||
|
||||
Reference in New Issue
Block a user