makes it actually possible to click the stamina button on the hud and fixes the stambuffer displayed by the button
This commit is contained in:
@@ -6,12 +6,12 @@
|
|||||||
name = "stamina"
|
name = "stamina"
|
||||||
icon_state = "stamina0"
|
icon_state = "stamina0"
|
||||||
screen_loc = ui_stamina
|
screen_loc = ui_stamina
|
||||||
mouse_opacity = 0
|
mouse_opacity = 1
|
||||||
|
|
||||||
/obj/screen/staminas/Click(location,control,params)
|
/obj/screen/staminas/Click(location,control,params)
|
||||||
if(isliving(usr))
|
if(isliving(usr))
|
||||||
var/mob/living/L = usr
|
var/mob/living/L = usr
|
||||||
to_chat(L, "<span class='notice'>You have <b>[L.getStaminaLoss()]</b> stamina loss.<br>Your stamina buffer can take <b>[L.stambuffer]</b> stamina loss, and will use <b>50%</b> of that stamina loss when recharging.<br>Your stamina buffer is <b>[(100/L.stambuffer)-(L.bufferedstam*(100/L.stambuffer))]%</b> full.</span>")
|
to_chat(L, "<span class='notice'>You have <b>[L.getStaminaLoss()]</b> stamina loss.<br>Your stamina buffer can take <b>[L.stambuffer]</b> stamina loss, and will use <b>50%</b> of that stamina loss when recharging.<br>Your stamina buffer is <b>[(L.stambuffer*(100/L.stambuffer))-(L.bufferedstam*(100/L.stambuffer))]%</b> full.</span>")
|
||||||
|
|
||||||
/mob/living/carbon/human/proc/staminahudamount()
|
/mob/living/carbon/human/proc/staminahudamount()
|
||||||
if(stat == DEAD || recoveringstam)
|
if(stat == DEAD || recoveringstam)
|
||||||
|
|||||||
Reference in New Issue
Block a user