From 0f47bde0948d423a57518a57f57c63014ed4046d Mon Sep 17 00:00:00 2001 From: NateDross <149045778+NateDross@users.noreply.github.com> Date: Wed, 13 Dec 2023 04:18:13 -0400 Subject: [PATCH] Fixed hard hat action item icon (#5189) # About the pull request This PR fixes the hard hat icon so that it is consistent with the actual state. Previously the action item will be the opposite of the expected state. For example when the light is off, the action item will display it as on. # Explain why it's good for the game It is confusing to have the states be inconsistent. By doing this change the icon is now consistent which will result in a better experience for players. # Testing Photographs and Procedure Before: ![image](https://github.com/cmss13-devs/cmss13/assets/149045778/828fa4c2-8781-47c6-9488-926a9ed7c465) After: ![image](https://github.com/cmss13-devs/cmss13/assets/149045778/6867b4aa-b512-4907-8ce1-ae2c6714245d) # Changelog :cl: fix: fixed hardhat action item icon /:cl: --- code/modules/clothing/head/hardhat.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/clothing/head/hardhat.dm b/code/modules/clothing/head/hardhat.dm index d94789651b75..c4a4fd61cd78 100644 --- a/code/modules/clothing/head/hardhat.dm +++ b/code/modules/clothing/head/hardhat.dm @@ -60,11 +60,11 @@ if(user == loc) user.update_inv_head() + update_icon() + for(var/datum/action/current_action as anything in actions) current_action.update_button_icon() - update_icon() - /obj/item/clothing/head/hardhat/attack_alien(mob/living/carbon/xenomorph/attacking_xeno) if(!can_be_broken) return