Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds the Isatoa and Ythralian languages #387

Merged
merged 12 commits into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions maplestation.dme
Original file line number Diff line number Diff line change
Expand Up @@ -5571,6 +5571,7 @@
#include "maplestation_modules\code\modules\jobs\job_types\antagonists\infiltrator.dm"
#include "maplestation_modules\code\modules\jobs\job_types\antagonists\syndicate.dm"
#include "maplestation_modules\code\modules\language\highdraconic.dm"
#include "maplestation_modules\code\modules\language\isatoan.dm"
#include "maplestation_modules\code\modules\language\japanese.dm"
#include "maplestation_modules\code\modules\language\language_holder.dm"
#include "maplestation_modules\code\modules\language\skrellian.dm"
Expand Down
72 changes: 72 additions & 0 deletions maplestation_modules/code/modules/language/isatoan.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
/datum/language/isatoa
name = "Isatoa"
desc = "A sophisticated language language used in the aristocratic country of Mu. Comes with a knack for fine dining and atmosphere."
key = "a"
flags = TONGUELESS_SPEECH
space_chance = 25
syllables = list(
"ai", "ea", "io", "ou", "ui", "ye", "al", "ae", "ri", "it", "ho", "la", "o",
"u", "y", "um", "ey", "on", "ar", "ia", "el", "an", "is", "ta", "or",
"en", "uv", "ao", "ya", "ra", "ro", "le", "t", "mi", "re", "pu", "uz", "uv",
"se", "lu", "xi", "th", "a", "i", "e", "za", "rn", "rk", "vo", "qu", "pi",
"iy", "ji", "vu", "gai", "fel", "ceo", "eon", "du", "li", "ios", "ma", "miv", "ola",
"lis", "aoi", "rin", "tav", "mu", "vel", "rx", "eri",
)
icon_state = "mu"
icon = 'maplestation_modules/icons/misc/language.dmi'
default_priority = 80
available_as_pref = TRUE

/datum/language_holder/isatoa
understood_languages = list(
/datum/language/common = list(LANGUAGE_ATOM),
/datum/language/isatoa = list(LANGUAGE_ATOM),
)
spoken_languages = list(
/datum/language/common = list(LANGUAGE_ATOM),
/datum/language/isatoa = list(LANGUAGE_ATOM),
)

/datum/language/eldritch
name = "Ythralian"
desc = "An ancient language spoken by only the most timeless beings. The common mortal can barely comprehend the dialect."
key = "e"
flags = TONGUELESS_SPEECH
space_chance = 25
syllables = list(
"yt", "th", "y", "t", "ra", "li", "an", "ia", "ny", "ar", "la", "in", "ir",
"ha", "na", "tr", "al", "yi", "ni", "ay", "ii", "ll", "ry", "xz", "yth",
"ran", "lii", "lar", "thr", "ayl", "axl", "nal", "irn", "lah", "nax", "yth", "iar", "uv",
"se", "lu", "xi", "th", "a", "i", "e", "za", "rn", "rk", "vo", "qu", "pi",
"ith", "h", "r", "n", "fel", "er", "eon", "yl", "ai", "ios", "wa", "va", "mv",
"gx", "w", "z", "ei", "eo", "vot", "pr", "us",
)
icon_state = "eldritch"
icon = 'maplestation_modules/icons/misc/language.dmi'
default_priority = 80

/datum/language_holder/eldritch
understood_languages = list(
/datum/language/common = list(LANGUAGE_ATOM),
/datum/language/eldritch = list(LANGUAGE_ATOM),
)
spoken_languages = list(
/datum/language/common = list(LANGUAGE_ATOM),
/datum/language/eldritch = list(LANGUAGE_ATOM),
)

/mob/living/translate_language(atom/movable/speaker, datum/language/language, raw_message, list/spans, list/message_mods = list())
. = ..()
if(. == raw_message)
return
if(isnull(language))
return
var/datum/language/dialect = GLOB.language_datum_instances[language]
dialect.heard_by_mob_who_lacks_critical_information(src, speaker)

/datum/language/proc/heard_by_mob_who_lacks_critical_information(mob/living/listener, atom/movable/speaker)
return

/datum/language/eldritch/heard_by_mob_who_lacks_critical_information(mob/living/listener, atom/movable/speaker)
listener.adjustOrganLoss(ORGAN_SLOT_BRAIN, 10, 100)
to_chat(listener, span_danger("Your mind languishes as you hear the words spoken by [speaker]!"))
1 change: 1 addition & 0 deletions maplestation_modules/code/modules/surgery/organs/tongue.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

/obj/item/organ/internal/tongue/get_possible_languages()
return ..() + list(
/datum/language/isatoa,
/datum/language/ratvarian,
/datum/language/skrell,
/datum/language/yangyu,
Expand Down
Binary file modified maplestation_modules/icons/misc/language.dmi
Binary file not shown.
Loading