mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 20:47:10 +01:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user