cant_drop = 1 Does Not Prevent You From Moving an Item From One Hand to Another
Created by: Shadowmech88
I've tried to fix it by putting a check in put_in_hand_check()
but for some reason, I can only get is_holding_item()
to return a held_items
index when the item in question is a child of /storage
, like a box or a backpack.
Using this code:
if(W.cant_drop)
var/I = is_holding_item(W)
if(I)
to_chat(src, "You can't pry \the [W] out of your [get_index_limb_name(I)]!")
return 0
Somehow prevents me from switching a cant_drop = 1
storage item from one hand to the other just fine, yet every other type of item can be moved freely between hands.
I can't figure it out, maybe someone else can.
Also this is what's causing #8492 (closed).