mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-14 02:43:16 +00:00
About The Pull Request This PR removes speech message and span hooks from dna, mutations, pierrot throat disease, species, tongues, masks, hats, held items, brain traumas and a carbon proc overload handling tonguelessness. Tonguelessness is now handled by tongue removal registering for the speech signal and the hook being deregistered by having a tongue put in. Also cleans up some /atom/movable/proc/get_spans() overloads that called the empty parent or overloaded the parent to do the exact same thing as the parent proc did. Also cleans up calls to radio.talk_into() where the caller would often, as a result of copypasta, provide the proc with fresh copies of the proc's default values for proc args, and makes say_quote() better by giving it a default spans value so that none of the callers have to provide the same default one. Why It's Good For The Game Changelog cl Naksu code: Cleaned up saycode /cl * start with this * oh man this looks so good * hats are dead * /obj/item/proc/speechModification is dead * brain traumas and get_held_item_speechspans() are dead * these should be static * unfortunately we still need this * /mob/living/carbon/treat_message(message) is kill * clean up get_spans() * dunk get_spans, modifies_speech for brain traumas, some superfluous static stuff * move stuff around * return values
276 lines
11 KiB
Plaintext
276 lines
11 KiB
Plaintext
//These are all minor mutations that affect your speech somehow.
|
|
//Individual ones aren't commented since their functions should be evident at a glance
|
|
|
|
/datum/mutation/human/nervousness
|
|
name = "Nervousness"
|
|
desc = "Causes the holder to stutter."
|
|
quality = MINOR_NEGATIVE
|
|
text_gain_indication = "<span class='danger'>You feel nervous.</span>"
|
|
|
|
/datum/mutation/human/nervousness/on_life()
|
|
if(prob(10))
|
|
owner.stuttering = max(10, owner.stuttering)
|
|
|
|
|
|
/datum/mutation/human/wacky
|
|
name = "Wacky"
|
|
desc = "<span class='sans'>Unknown.</span>"
|
|
quality = MINOR_NEGATIVE
|
|
text_gain_indication = "<span class='sans'>You feel an off sensation in your voicebox.</span>"
|
|
text_lose_indication = "<span class='notice'>The off sensation passes.</span>"
|
|
|
|
/datum/mutation/human/wacky/on_acquiring(mob/living/carbon/human/owner)
|
|
if(..())
|
|
return
|
|
RegisterSignal(owner, COMSIG_MOB_SAY, .proc/handle_speech)
|
|
|
|
/datum/mutation/human/wacky/on_losing(mob/living/carbon/human/owner)
|
|
if(..())
|
|
return
|
|
UnregisterSignal(owner, COMSIG_MOB_SAY)
|
|
|
|
/datum/mutation/human/wacky/proc/handle_speech(datum/source, list/speech_args)
|
|
speech_args[SPEECH_SPANS] |= SPAN_SANS
|
|
|
|
/datum/mutation/human/mute
|
|
name = "Mute"
|
|
desc = "Completely inhibits the vocal section of the brain."
|
|
quality = NEGATIVE
|
|
text_gain_indication = "<span class='danger'>You feel unable to express yourself at all.</span>"
|
|
text_lose_indication = "<span class='danger'>You feel able to speak freely again.</span>"
|
|
|
|
/datum/mutation/human/mute/on_acquiring(mob/living/carbon/human/owner)
|
|
if(..())
|
|
return
|
|
ADD_TRAIT(owner, TRAIT_MUTE, GENETIC_MUTATION)
|
|
|
|
/datum/mutation/human/mute/on_losing(mob/living/carbon/human/owner)
|
|
if(..())
|
|
return
|
|
REMOVE_TRAIT(owner, TRAIT_MUTE, GENETIC_MUTATION)
|
|
|
|
|
|
/datum/mutation/human/smile
|
|
name = "Smile"
|
|
desc = "Causes the user to be in constant mania."
|
|
quality = MINOR_NEGATIVE
|
|
text_gain_indication = "<span class='notice'>You feel so happy. Nothing can be wrong with anything. :)</span>"
|
|
text_lose_indication = "<span class='notice'>Everything is terrible again. :(</span>"
|
|
|
|
/datum/mutation/human/smile/on_acquiring(mob/living/carbon/human/owner)
|
|
if(..())
|
|
return
|
|
RegisterSignal(owner, COMSIG_MOB_SAY, .proc/handle_speech)
|
|
|
|
/datum/mutation/human/smile/on_losing(mob/living/carbon/human/owner)
|
|
if(..())
|
|
return
|
|
UnregisterSignal(owner, COMSIG_MOB_SAY)
|
|
|
|
/datum/mutation/human/smile/proc/handle_speech(datum/source, list/speech_args)
|
|
var/message = speech_args[SPEECH_MESSAGE]
|
|
if(message)
|
|
message = " [message] "
|
|
//Time for a friendly game of SS13
|
|
message = replacetext(message," stupid "," smart ")
|
|
message = replacetext(message," retard "," genius ")
|
|
message = replacetext(message," unrobust "," robust ")
|
|
message = replacetext(message," dumb "," smart ")
|
|
message = replacetext(message," awful "," great ")
|
|
message = replacetext(message," gay ",pick(" nice "," ok "," alright "))
|
|
message = replacetext(message," horrible "," fun ")
|
|
message = replacetext(message," terrible "," terribly fun ")
|
|
message = replacetext(message," terrifying "," wonderful ")
|
|
message = replacetext(message," gross "," cool ")
|
|
message = replacetext(message," disgusting "," amazing ")
|
|
message = replacetext(message," loser "," winner ")
|
|
message = replacetext(message," useless "," useful ")
|
|
message = replacetext(message," oh god "," cheese and crackers ")
|
|
message = replacetext(message," jesus "," gee wiz ")
|
|
message = replacetext(message," weak "," strong ")
|
|
message = replacetext(message," kill "," hug ")
|
|
message = replacetext(message," murder "," tease ")
|
|
message = replacetext(message," ugly "," beautiful ")
|
|
message = replacetext(message," douchbag "," nice guy ")
|
|
message = replacetext(message," douchebag "," nice guy ")
|
|
message = replacetext(message," whore "," lady ")
|
|
message = replacetext(message," nerd "," smart guy ")
|
|
message = replacetext(message," moron "," fun person ")
|
|
message = replacetext(message," IT'S LOOSE "," EVERYTHING IS FINE ")
|
|
message = replacetext(message," sex "," hug fight ")
|
|
message = replacetext(message," idiot "," genius ")
|
|
message = replacetext(message," fat "," thin ")
|
|
message = replacetext(message," beer "," water with ice ")
|
|
message = replacetext(message," drink "," water ")
|
|
message = replacetext(message," feminist "," empowered woman ")
|
|
message = replacetext(message," i hate you "," you're mean ")
|
|
message = replacetext(message," nigger "," african american ")
|
|
message = replacetext(message," jew "," jewish ")
|
|
message = replacetext(message," shit "," shiz ")
|
|
message = replacetext(message," crap "," poo ")
|
|
message = replacetext(message," slut "," tease ")
|
|
message = replacetext(message," ass "," butt ")
|
|
message = replacetext(message," damn "," dang ")
|
|
message = replacetext(message," fuck "," ")
|
|
message = replacetext(message," penis "," privates ")
|
|
message = replacetext(message," cunt "," privates ")
|
|
message = replacetext(message," dick "," jerk ")
|
|
message = replacetext(message," vagina "," privates ")
|
|
speech_args[SPEECH_MESSAGE] = trim(message)
|
|
|
|
|
|
/datum/mutation/human/unintelligible
|
|
name = "Unintelligible"
|
|
desc = "Partially inhibits the vocal center of the brain, severely distorting speech."
|
|
quality = NEGATIVE
|
|
text_gain_indication = "<span class='danger'>You can't seem to form any coherent thoughts!</span>"
|
|
text_lose_indication = "<span class='danger'>Your mind feels more clear.</span>"
|
|
|
|
/datum/mutation/human/unintelligible/on_acquiring(mob/living/carbon/human/owner)
|
|
if(..())
|
|
return
|
|
ADD_TRAIT(owner, TRAIT_UNINTELLIGIBLE_SPEECH, GENETIC_MUTATION)
|
|
|
|
/datum/mutation/human/unintelligible/on_losing(mob/living/carbon/human/owner)
|
|
if(..())
|
|
return
|
|
REMOVE_TRAIT(owner, TRAIT_UNINTELLIGIBLE_SPEECH, GENETIC_MUTATION)
|
|
|
|
/datum/mutation/human/swedish
|
|
name = "Swedish"
|
|
desc = "A horrible mutation originating from the distant past. Thought to be eradicated after the incident in 2037."
|
|
quality = MINOR_NEGATIVE
|
|
text_gain_indication = "<span class='notice'>You feel Swedish, however that works.</span>"
|
|
text_lose_indication = "<span class='notice'>The feeling of Swedishness passes.</span>"
|
|
|
|
/datum/mutation/human/swedish/on_acquiring(mob/living/carbon/human/owner)
|
|
if(..())
|
|
return
|
|
RegisterSignal(owner, COMSIG_MOB_SAY, .proc/handle_speech)
|
|
|
|
/datum/mutation/human/swedish/on_losing(mob/living/carbon/human/owner)
|
|
if(..())
|
|
return
|
|
UnregisterSignal(owner, COMSIG_MOB_SAY)
|
|
|
|
/datum/mutation/human/swedish/proc/handle_speech(datum/source, list/speech_args)
|
|
var/message = speech_args[SPEECH_MESSAGE]
|
|
if(message)
|
|
message = replacetext(message,"w","v")
|
|
message = replacetext(message,"j","y")
|
|
message = replacetext(message,"a",pick("å","ä","æ","a"))
|
|
message = replacetext(message,"bo","bjo")
|
|
message = replacetext(message,"o",pick("ö","ø","o"))
|
|
if(prob(30))
|
|
message += " Bork[pick("",", bork",", bork, bork")]!"
|
|
speech_args[SPEECH_MESSAGE] = trim(message)
|
|
|
|
/datum/mutation/human/chav
|
|
name = "Chav"
|
|
desc = "Unknown"
|
|
quality = MINOR_NEGATIVE
|
|
text_gain_indication = "<span class='notice'>Ye feel like a reet prat like, innit?</span>"
|
|
text_lose_indication = "<span class='notice'>You no longer feel like being rude and sassy.</span>"
|
|
|
|
/datum/mutation/human/chav/on_acquiring(mob/living/carbon/human/owner)
|
|
if(..())
|
|
return
|
|
RegisterSignal(owner, COMSIG_MOB_SAY, .proc/handle_speech)
|
|
|
|
/datum/mutation/human/chav/on_losing(mob/living/carbon/human/owner)
|
|
if(..())
|
|
return
|
|
UnregisterSignal(owner, COMSIG_MOB_SAY)
|
|
|
|
/datum/mutation/human/chav/proc/handle_speech(datum/source, list/speech_args)
|
|
var/message = speech_args[SPEECH_MESSAGE]
|
|
if(message)
|
|
message = " [message] "
|
|
message = replacetext(message," looking at "," gawpin' at ")
|
|
message = replacetext(message," great "," bangin' ")
|
|
message = replacetext(message," man "," mate ")
|
|
message = replacetext(message," friend ",pick(" mate "," bruv "," bledrin "))
|
|
message = replacetext(message," what "," wot ")
|
|
message = replacetext(message," drink "," wet ")
|
|
message = replacetext(message," get "," giz ")
|
|
message = replacetext(message," what "," wot ")
|
|
message = replacetext(message," no thanks "," wuddent fukken do one ")
|
|
message = replacetext(message," i don't know "," wot mate ")
|
|
message = replacetext(message," no "," naw ")
|
|
message = replacetext(message," robust "," chin ")
|
|
message = replacetext(message," hi "," how what how ")
|
|
message = replacetext(message," hello "," sup bruv ")
|
|
message = replacetext(message," kill "," bang ")
|
|
message = replacetext(message," murder "," bang ")
|
|
message = replacetext(message," windows "," windies ")
|
|
message = replacetext(message," window "," windy ")
|
|
message = replacetext(message," break "," do ")
|
|
message = replacetext(message," your "," yer ")
|
|
message = replacetext(message," security "," coppers ")
|
|
speech_args[SPEECH_MESSAGE] = trim(message)
|
|
|
|
|
|
/datum/mutation/human/elvis
|
|
name = "Elvis"
|
|
desc = "A terrifying mutation named after its 'patient-zero'."
|
|
quality = MINOR_NEGATIVE
|
|
locked = TRUE
|
|
text_gain_indication = "<span class='notice'>You feel pretty good, honeydoll.</span>"
|
|
text_lose_indication = "<span class='notice'>You feel a little less conversation would be great.</span>"
|
|
|
|
/datum/mutation/human/elvis/on_life()
|
|
switch(pick(1,2))
|
|
if(1)
|
|
if(prob(15))
|
|
var/list/dancetypes = list("swinging", "fancy", "stylish", "20'th century", "jivin'", "rock and roller", "cool", "salacious", "bashing", "smashing")
|
|
var/dancemoves = pick(dancetypes)
|
|
owner.visible_message("<b>[owner]</b> busts out some [dancemoves] moves!")
|
|
if(2)
|
|
if(prob(15))
|
|
owner.visible_message("<b>[owner]</b> [pick("jiggles their hips", "rotates their hips", "gyrates their hips", "taps their foot", "dances to an imaginary song", "jiggles their legs", "snaps their fingers")]!")
|
|
|
|
/datum/mutation/human/elvis/on_acquiring(mob/living/carbon/human/owner)
|
|
if(..())
|
|
return
|
|
RegisterSignal(owner, COMSIG_MOB_SAY, .proc/handle_speech)
|
|
|
|
/datum/mutation/human/elvis/on_losing(mob/living/carbon/human/owner)
|
|
if(..())
|
|
return
|
|
UnregisterSignal(owner, COMSIG_MOB_SAY)
|
|
|
|
/datum/mutation/human/elvis/proc/handle_speech(datum/source, list/speech_args)
|
|
var/message = speech_args[SPEECH_MESSAGE]
|
|
if(message)
|
|
message = " [message] "
|
|
message = replacetext(message," i'm not "," I aint ")
|
|
message = replacetext(message," girl ",pick(" honey "," baby "," baby doll "))
|
|
message = replacetext(message," man ",pick(" son "," buddy "," brother"," pal "," friendo "))
|
|
message = replacetext(message," out of "," outta ")
|
|
message = replacetext(message," thank you "," thank you, thank you very much ")
|
|
message = replacetext(message," thanks "," thank you, thank you very much ")
|
|
message = replacetext(message," what are you "," whatcha ")
|
|
message = replacetext(message," yes ",pick(" sure", "yea "))
|
|
message = replacetext(message," faggot "," square ")
|
|
message = replacetext(message," muh valids "," my kicks ")
|
|
speech_args[SPEECH_MESSAGE] = trim(message)
|
|
|
|
|
|
/datum/mutation/human/stoner
|
|
name = "Stoner"
|
|
desc = "A common mutation that severely decreases intelligence."
|
|
quality = NEGATIVE
|
|
locked = TRUE
|
|
text_gain_indication = "<span class='notice'>You feel...totally chill, man!</span>"
|
|
text_lose_indication = "<span class='notice'>You feel like you have a better sense of time.</span>"
|
|
|
|
/datum/mutation/human/stoner/on_acquiring(mob/living/carbon/human/owner)
|
|
..()
|
|
owner.grant_language(/datum/language/beachbum)
|
|
owner.remove_language(/datum/language/common)
|
|
|
|
/datum/mutation/human/stoner/on_losing(mob/living/carbon/human/owner)
|
|
..()
|
|
owner.grant_language(/datum/language/common)
|
|
owner.remove_language(/datum/language/beachbum)
|