mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 12:41:09 +01:00
Getting shrunk makes your voice small (#82025)
## About The Pull Request     ## 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:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user