<commit_before>/datum/hud/var/obj/screen/staminas/staminas
/datum/hud/var/obj/screen/staminabuffer/staminabuffer

/obj/screen/staminas
	icon = 'modular_citadel/icons/ui/screen_gen.dmi'
	name = "stamina"
	icon_state = "stamina0"
	screen_loc = ui_stamina
	mouse_opacity = 0

/obj/screen/staminas/Click(location,control,params)
	if(isliving(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>[stambuffer]</b> stamina loss, and will use <b>50%</b> of that stamina loss when recharging.<br>Your stamina buffer is <b>[bufferedstam*(100/stambuffer)]%</b> full.</span>")

/mob/living/carbon/human/proc/staminahudamount()
	if(stat == DEAD || recoveringstam)
		return "staminacrit"
	else
		switch(hal_screwyhud)
			if(1 to 2)
				return "staminacrit"<commit_msg>fixes the calc for stamina buffer usage<commit_after>/datum/hud/var/obj/screen/staminas/staminas
/datum/hud/var/obj/screen/staminabuffer/staminabuffer

/obj/screen/staminas
	icon = 'modular_citadel/icons/ui/screen_gen.dmi'
	name = "stamina"
	icon_state = "stamina0"
	screen_loc = ui_stamina
	mouse_opacity = 0

/obj/screen/staminas/Click(location,control,params)
	if(isliving(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>[stambuffer]</b> stamina loss, and will use <b>50%</b> of that stamina loss when recharging.<br>Your stamina buffer is <b>[(100/stambuffer)-(bufferedstam*(100/stambuffer))]%</b> full.</span>")

/mob/living/carbon/human/proc/staminahudamount()
	if(stat == DEAD || recoveringstam)
		return "staminacrit"
	else
		switch(hal_screwyhud)
			if(1 to 2)
				return "staminacrit"
{'fraction_non_alphanumeric': 0.14882655981682885, 'fraction_numerical': 0.012020606754436176, 'mean_word_length': 5.220640569395018, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3860558', 'n_tokens_mistral': 743, 'n_tokens_neox': 694, 'n_words': 123}