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:
phil235
2016-08-28 19:38:15 +02:00
parent 9b557d1fd0
commit 42301f32e2
10 changed files with 90 additions and 86 deletions
@@ -142,7 +142,7 @@
R.user_unbuckle_mob(R.buckled_mobs[1],user)
loaded = target
target.loc = src
target.forceMove(src)
user.visible_message("[user] collects [loaded].", "<span class='notice'>You collect [loaded].</span>")
..()