Fixes examine bugs

This commit is contained in:
Anewbe
2018-05-24 17:08:45 -05:00
parent e779d0f26f
commit 49cf32f3b0
2 changed files with 3 additions and 4 deletions
@@ -15,7 +15,7 @@
//Mask to just consumed restricted
var/consumed_restricted = restricted_accessory_slots & consumed_slots
//They share at least one bit with the restricted slots
if(consumed_restricted & A.slot)
return FALSE
@@ -123,7 +123,6 @@
set src in usr
if(!istype(usr, /mob/living)) return
if(usr.stat) return
if(!accessories.len) return
var/obj/item/clothing/accessory/A
if(LAZYLEN(accessories))
A = input("Select an accessory to remove from [src]") as null|anything in accessories
@@ -124,7 +124,7 @@
var/tie_msg
if(istype(w_uniform,/obj/item/clothing/under) && !(skip_gear & EXAMINE_SKIPTIE))
var/obj/item/clothing/under/U = w_uniform
if(U.accessories.len)
if(LAZYLEN(U.accessories))
var/list/accessories_visible = list() //please let this fix the stupid fucking runtimes
if(skip_gear & EXAMINE_SKIPHOLSTER)
for(var/obj/item/clothing/accessory/A in U.accessories)
@@ -155,7 +155,7 @@
var/tie_msg
if(istype(wear_suit,/obj/item/clothing/suit))
var/obj/item/clothing/suit/U = wear_suit
if(U.accessories.len)
if(LAZYLEN(U.accessories))
tie_msg += " Attached to it is [english_list(U.accessories)]."
if(wear_suit.blood_DNA)