Cleaning up some runtimes (#16027)

This commit is contained in:
Wildkins
2023-03-13 19:22:43 +00:00
committed by GitHub
parent 6ce513cb40
commit 209a0a2e0f
16 changed files with 42 additions and 20 deletions
+4
View File
@@ -447,6 +447,10 @@
return TRUE
/mob/living/carbon/get_shock()
if(can_feel_pain())
return ..()
/mob/living/carbon/proc/need_breathe()
return
@@ -465,7 +465,7 @@ This function restores all organs.
rads = rads * species.radiation_mod
..(rads)
/mob/living/carbon/human/proc/get_shock()
/mob/living/carbon/human/get_shock()
if(!can_feel_pain())
return 0
@@ -562,7 +562,7 @@
for(var/overlay in H.equipment_overlays)
H.client.screen |= overlay
var/obj/item/organ/internal/eyes/night/NE = H.internal_organs_by_name[BP_EYES]
var/obj/item/organ/internal/eyes/night/NE = H.get_eyes()
if(istype(NE) && NE.night_vision && NE.can_change_invisible())
H.set_see_invisible(SEE_INVISIBLE_NOLIGHTING)
@@ -113,12 +113,6 @@
alterable_internal_organs = list(BP_HEART, BP_EYES, BP_LUNGS, BP_LIVER, BP_KIDNEYS, BP_STOMACH)
pain_emotes_with_pain_level = list(
list(/singleton/emote/audible/wheeze, /singleton/emote/audible/roar, /singleton/emote/audible/bellow) = 80,
list(/singleton/emote/audible/grunt, /singleton/emote/audible/groan, /singleton/emote/audible/wheeze, /singleton/emote/audible/hiss) = 50,
list(/singleton/emote/audible/grunt, /singleton/emote/audible/groan, /singleton/emote/audible/hiss) = 20,
)
pain_messages = list("It hurts so much", "You really need some painkillers", "Ancestors, it hurts")
move_trail = /obj/effect/decal/cleanable/blood/tracks/claw
+3
View File
@@ -298,6 +298,9 @@ default behaviour is:
/mob/living/proc/getHalLoss()
return 0
/mob/living/proc/get_shock()
return getHalLoss()
/mob/living/proc/getCloneLoss()
return 0