Skip to content

Commit ea2ffaa

Browse files
authored
Forced whisper from soft crit moved to suffocation (#744)
1 parent d60c882 commit ea2ffaa

3 files changed

Lines changed: 11 additions & 4 deletions

File tree

code/modules/mob/living/carbon/carbon.dm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -551,13 +551,13 @@
551551
if(crit_percent() < 100 || HAS_TRAIT(src, TRAIT_NOSOFTCRIT)) // melbert todo
552552
if(HAS_TRAIT_FROM(src, TRAIT_SOFT_CRIT, PAINCRIT))
553553
Paralyze(2 SECONDS)
554-
remove_traits(list(TRAIT_SOFT_CRIT, TRAIT_INCAPACITATED, TRAIT_IMMOBILIZED, TRAIT_FLOORED, TRAIT_HANDS_BLOCKED), PAINCRIT)
554+
remove_traits(list(TRAIT_SOFT_CRIT, TRAIT_LABOURED_BREATHING, TRAIT_INCAPACITATED, TRAIT_IMMOBILIZED, TRAIT_FLOORED, TRAIT_HANDS_BLOCKED), PAINCRIT)
555555
return
556556

557557
if(HAS_TRAIT_FROM(src, TRAIT_SOFT_CRIT, PAINCRIT))
558558
return
559559
var/is_standing = body_position == STANDING_UP
560-
add_traits(list(TRAIT_SOFT_CRIT, TRAIT_INCAPACITATED, TRAIT_IMMOBILIZED, TRAIT_FLOORED, TRAIT_HANDS_BLOCKED), PAINCRIT)
560+
add_traits(list(TRAIT_SOFT_CRIT, TRAIT_LABOURED_BREATHING, TRAIT_INCAPACITATED, TRAIT_IMMOBILIZED, TRAIT_FLOORED, TRAIT_HANDS_BLOCKED), PAINCRIT)
561561
if(stat == DEAD)
562562
return
563563
if(buckled)

code/modules/mob/living/living_say.dm

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,9 @@ GLOBAL_LIST_INIT(department_radio_keys, list(
124124
return
125125

126126
switch(stat)
127-
if(SOFT_CRIT)
128-
message_mods[WHISPER_MODE] = MODE_WHISPER
127+
// NON-MODULE CHANGE
128+
// if(SOFT_CRIT)
129+
// message_mods[WHISPER_MODE] = MODE_WHISPER
129130
if(UNCONSCIOUS)
130131
return
131132
if(HARD_CRIT)

code/modules/mob/mob_say.dm

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,4 +253,10 @@
253253
return
254254
return message
255255

256+
/mob/living/carbon/human/get_message_mods(message, list/mods)
257+
// NON-MODULE CHANGE
258+
if(losebreath > 2 || failed_last_breath)
259+
mods[WHISPER_MODE] = MODE_WHISPER
260+
return ..()
261+
256262
#undef MESSAGE_MODS_LENGTH

0 commit comments

Comments
 (0)