mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 03:57:13 +01:00
Accessory fixes
This commit is contained in:
@@ -507,7 +507,7 @@
|
||||
|
||||
/mob/living/carbon/human/update_action_buttons()
|
||||
var/num = 1
|
||||
var/to_update = list()
|
||||
var/list/to_update = list()
|
||||
if(!hud_used) return
|
||||
if(!client) return
|
||||
|
||||
@@ -521,11 +521,11 @@
|
||||
if(istype(I,/obj/item/clothing/under))
|
||||
var/obj/item/clothing/under/U = I
|
||||
if(U.accessories)
|
||||
for(var/obj/item/clothing/accessory/A in U.accessories)
|
||||
if(A.icon_action_button)
|
||||
to_update |= A
|
||||
if(I.icon_action_button)
|
||||
to_update |= I
|
||||
for(var/obj/item/clothing/accessory/AC in U.accessories)
|
||||
if(AC.icon_action_button)
|
||||
to_update += AC
|
||||
if(I.icon_action_button && (!I in to_update))
|
||||
to_update += I
|
||||
|
||||
for(var/obj/item/I in to_update)
|
||||
var/obj/screen/item_action/A = new(hud_used)
|
||||
|
||||
Reference in New Issue
Block a user