Files
Bubberstation/modular_zubbers/code/modules/languages/empathy.dm
nevimer f9d8091e2c Add Marish and Shadekin Empathy (#1463)
<!-- Write **BELOW** The Headers and **ABOVE** The comments else it may
not be viewable. -->
<!-- You can view Contributing.MD for a detailed description of the pull
request process. -->

## About The Pull Request

Adds Marish and Shadekin Empathy

<!-- Please make sure to actually test your PRs. If you have not tested
your PR mention it. -->

## Why It's Good For The Game

Species lore shadekins.

## Proof Of Testing


https://github.com/Bubberstation/Bubberstation/assets/77420409/ce047836-57e6-4dcb-a9a2-82cdb42ad7d0



<!-- Compile and run your code locally. Make sure it works. This is the
place to show off your changes! We are not responsible for testing your
features. -->

## Changelog

<!-- If your PR modifies aspects of the game that can be concretely
observed by players or admins you should add a changelog. If your change
does NOT meet this description, remove this section. Be sure to properly
mark your PRs to prevent unnecessary GBP loss. You can read up on GBP
and it's effects on PRs in the tgstation guides for contributors. Please
note that maintainers freely reserve the right to remove and add tags
should they deem it appropriate. You can attempt to finagle the system
all you want, but it's best to shoot for clear communication right off
the bat. -->

🆑 nevimer, roachwitharoach
add: Added Marish and Shadekin Empathy as languages. 
icon: added two icons for shadekin languages
/🆑

<!-- Both 🆑's are required for the changelog to work! You can put
your name to the right of the first 🆑 if you want to overwrite your
GitHub username as author ingame. -->
<!-- You can use multiple of the same prefix (they're only used for the
icon ingame) and delete the unneeded ones. Despite some of the tags,
changelogs should generally represent how a player might be affected by
the changes rather than a summary of the PR's contents. -->

<!-- By opening a pull request. You have read and understood the
repository rules located on the main README.md on this project. -->
2024-05-06 01:23:33 -04:00

80 lines
2.9 KiB
Plaintext

/datum/language/marish
name = "Marish"
desc = "Where shadekin have a language rooted in empathy, there are still subtle tones and syllables that are as delicate as the emotions that shadekin normally communicate with."
key = "M"
space_chance = 55
icon = 'modular_zubbers/icons/misc/language.dmi'
icon_state = "marish"
default_priority = 90
flags = LANGUAGE_HIDE_ICON_IF_NOT_UNDERSTOOD | NO_STUTTER
syllables = list("mar", "mwrrr", "maaAr", "'aarrr", "wrurrl", "mmar")
/datum/language_holder/shadekin
understood_languages = list(/datum/language/common = list(LANGUAGE_ATOM),
/datum/language/marish = list(LANGUAGE_ATOM),
/datum/language/marish/empathy = list(LANGUAGE_ATOM),
)
spoken_languages = list(/datum/language/common = list(LANGUAGE_ATOM),
/datum/language/marish = list(LANGUAGE_ATOM),
/datum/language/marish/empathy = list(LANGUAGE_ATOM),
)
/obj/item/organ/internal/tongue/shadekin
name = "shadekin tongue"
desc = "A mysterious tongue."
icon_state = "silvertongue"
say_mod = "mars"
sense_of_taste = TRUE
modifies_speech = TRUE
languages_native = list(/datum/language/marish/empathy)
/obj/item/organ/internal/ears/shadekin
name = "shadekin ears"
desc = "Ears, covered in fur."
icon = 'icons/obj/clothing/head/costume.dmi'
icon_state = "kitty"
damage_multiplier = 2.5 // Shadekins big ears are easy to damage with loud noises.
/datum/language/marish/empathy
name = "Empathy"
desc = "Shadekin seem to always know what the others are thinking. This is probably why."
key = "9"
icon_state = "empathy"
/obj/item/organ/internal/tongue/shadekin/handle_speech(datum/source, list/speech_args)
if(speech_args[SPEECH_LANGUAGE] in languages_native) // Speaking a native language?
return modify_speech(source, speech_args)
/obj/item/organ/internal/tongue/shadekin/modify_speech(datum/source, list/speech_args)
ASYNC
actually_modify_speech(source, speech_args)
speech_args[SPEECH_MESSAGE] = "" // Makes it not send to chat verbally.
/obj/item/organ/internal/tongue/shadekin/proc/actually_modify_speech(datum/source, list/speech_args)
var/message = speech_args[SPEECH_MESSAGE]
var/mob/living/carbon/human/user = source
user.balloon_alert_to_viewers("ears vibrate", "projecting thoughts...")
if(!do_after(source, 2 SECONDS, source))
message = full_capitalize(rot13(message))
var/rendered = span_abductor("<b>[user.real_name]:</b> [message]")
user.log_talk(message, LOG_SAY, tag="shadekin")
for(var/mob/living/carbon/human/living_mob in GLOB.alive_mob_list)
var/obj/item/organ/internal/ears/shadekin/ears = living_mob.get_organ_slot(ORGAN_SLOT_EARS)
if(!istype(ears))
continue
to_chat(living_mob, rendered)
if(living_mob != user)
living_mob.balloon_alert_to_viewers("ears vibrate", "transmission heard...")
if(length(GLOB.dead_mob_list))
for(var/mob/dead_mob in GLOB.dead_mob_list)
if(dead_mob.client)
var/link = FOLLOW_LINK(dead_mob, user)
to_chat(dead_mob, "[link] [rendered]")