HUD item slots no longer show item placeholders when there are actual items inside

This commit is contained in:
c0
2016-03-22 08:00:38 +03:00
parent bb97cb8a2a
commit f71ab62e79
25 changed files with 334 additions and 256 deletions
+8 -8
View File
@@ -92,15 +92,15 @@
if(over_object == M)
M.put_in_hands(src)
else if(istype(over_object, /obj/screen))
switch(over_object.name)
if("r_hand")
if(!remove_item_from_storage(M))
M.unEquip(src)
else if(istype(over_object, /obj/screen/inventory/hand))
var/obj/screen/inventory/hand/H = over_object
if(!remove_item_from_storage(M))
if(!M.unEquip(src))
return
switch(H.slot_id)
if(slot_r_hand)
M.put_in_r_hand(src)
if("l_hand")
if(!remove_item_from_storage(M))
M.unEquip(src)
if(slot_l_hand)
M.put_in_l_hand(src)
add_fingerprint(M)
+8 -8
View File
@@ -31,15 +31,15 @@
if(over_object == M)
M.put_in_hands(src)
else if(istype(over_object, /obj/screen))
switch(over_object.name)
if("r_hand")
if(!remove_item_from_storage(M))
M.unEquip(src)
else if(istype(over_object, /obj/screen/inventory/hand))
var/obj/screen/inventory/hand/H = over_object
if(!remove_item_from_storage(M))
if(!M.unEquip(src))
return
switch(H.slot_id)
if(slot_r_hand)
M.put_in_r_hand(src)
if("l_hand")
if(!remove_item_from_storage(M))
M.unEquip(src)
if(slot_l_hand)
M.put_in_l_hand(src)
add_fingerprint(M)