From 033875907165e4ddb9d84e20859a5f302987e971 Mon Sep 17 00:00:00 2001 From: "johnsonmt88@gmail.com" Date: Wed, 22 Aug 2012 14:28:20 +0000 Subject: [PATCH] Hardhats and Rig helmets now properly update their mob icons when toggled with the action buttons (buttons on the top-left of the screen.) Items equipped with the 'equip' button now update the player's hands. Unfortunately since the procs it uses forces an update_icons() call, using the equip button will now call it twice. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4512 316c924e-a436-60f5-8080-3fe189b3f50e --- code/modules/mob/screen.dm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/code/modules/mob/screen.dm b/code/modules/mob/screen.dm index 3772bc63d4c..8da55e7db69 100644 --- a/code/modules/mob/screen.dm +++ b/code/modules/mob/screen.dm @@ -33,6 +33,11 @@ spawn() owner.ui_action_click() + switch(owner.icon_action_button) + if("action_hardhat", "action_welding") + usr.update_inv_head() + if("action_jetpack") + usr.update_inv_back() //This is the proc used to update all the action buttons. It just returns for all mob types except humans. /mob/proc/update_action_buttons() @@ -275,6 +280,9 @@ var/mob/living/carbon/human/H = usr H.equip_to_appropriate_slot(I) + usr.update_inv_l_hand(0) + usr.update_inv_r_hand() + if("resist") if(isliving(usr)) var/mob/living/L = usr