Getting shrunk makes your voice small (#82025)

## About The Pull Request

![image](https://github.com/tgstation/tgstation/assets/66640614/83822a60-1324-45f2-9893-4a1628484d03)

![image](https://github.com/tgstation/tgstation/assets/66640614/9c22a846-d1b7-4b78-b773-cbfc1686528f)

![image](https://github.com/tgstation/tgstation/assets/66640614/84779e0c-02d8-4d0c-bbeb-c5bd176c4b6d)

![image](https://github.com/tgstation/tgstation/assets/66640614/90e76a29-8e8b-4a9e-86c5-3183fe8b60ee)


## Why It's Good For The Game
I think it's funny. Plus I like what helium introduced with the small
text, and wanted to add it to more places.

## Changelog
🆑 Tattle
add: Getting shrunk makes you talk small
/🆑

---------

Co-authored-by: tattle <article.disaster@gmail.com>
This commit is contained in:
tattle
2024-03-16 20:03:27 +01:00
committed by GitHub
co-authored by tattle
parent 5812fca1a2
commit 8844c1078b
3 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -75,7 +75,7 @@
#define SPAN_CLOWN "clown"
#define SPAN_SINGING "singing"
#define SPAN_TAPE_RECORDER "tape_recorder"
#define SPAN_HELIUM "small"
#define SPAN_SMALL_VOICE "small"
//bitflag #defines for return value of the radio() proc.
/// Makes the message use italics
+6
View File
@@ -15,6 +15,7 @@
if(isliving(parent_atom))
var/mob/living/L = parent_atom
ADD_TRAIT(L, TRAIT_UNDENSE, SHRUNKEN_TRAIT)
RegisterSignal(L, COMSIG_MOB_SAY, PROC_REF(handle_shrunk_speech))
L.add_movespeed_modifier(/datum/movespeed_modifier/shrink_ray)
if(iscarbon(L))
var/mob/living/carbon/C = L
@@ -30,6 +31,10 @@
span_userdanger("Everything grows bigger!"))
QDEL_IN(src, shrink_time)
/datum/component/shrink/proc/handle_shrunk_speech(mob/living/little_guy, list/speech_args)
SIGNAL_HANDLER
speech_args[SPEECH_SPANS] |= SPAN_SMALL_VOICE
/datum/component/shrink/Destroy()
var/atom/parent_atom = parent
parent_atom.transform = parent_atom.transform.Scale(2,2)
@@ -38,6 +43,7 @@
var/mob/living/L = parent_atom
L.remove_movespeed_modifier(/datum/movespeed_modifier/shrink_ray)
REMOVE_TRAIT(L, TRAIT_UNDENSE, SHRUNKEN_TRAIT)
UnregisterSignal(L, COMSIG_MOB_SAY)
if(ishuman(L))
var/mob/living/carbon/human/H = L
H.physiology.damage_resistance += 100
@@ -444,7 +444,7 @@
/// React to speach while hopped up on the high pitched voice juice
/obj/item/organ/internal/lungs/proc/handle_helium_speech(mob/living/carbon/breather, list/speech_args)
SIGNAL_HANDLER
speech_args[SPEECH_SPANS] |= SPAN_HELIUM
speech_args[SPEECH_SPANS] |= SPAN_SMALL_VOICE
/// Gain hypernob effects if we have enough of the stuff
/obj/item/organ/internal/lungs/proc/consume_hypernoblium(mob/living/carbon/breather, datum/gas_mixture/breath, hypernob_pp, old_hypernob_pp)