mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Fixes null language runtime, adds mouse language
This commit is contained in:
@@ -56,7 +56,10 @@
|
||||
|
||||
/datum/speech/proc/scramble()
|
||||
var/datum/speech/clone = clone()
|
||||
if(language)
|
||||
clone.message = language.scramble(message)
|
||||
else
|
||||
clone.message = stars(message, 10)
|
||||
return clone
|
||||
|
||||
/datum/speech/proc/render_wrapper_classes(var/sep=" ")
|
||||
|
||||
@@ -237,6 +237,15 @@
|
||||
"gal'h'rfikk", "harfrandid", "mud'gib", "fuu", "ma'jin", "dedo", "ol'btoh", "n'ath", "reth", "sh'yro", "eth", \
|
||||
"d'rekkathnor", "khari'd", "gual'te", "nikka", "nikt'o", "barada", "kla'atu", "barhah", "hra" ,"zar'garis")
|
||||
|
||||
/datum/language/mouse
|
||||
name = "Mouse"
|
||||
desc = "Literally just squeaks"
|
||||
speech_verb = "squeaks"
|
||||
colour = "say_quote"
|
||||
key = "9"
|
||||
space_chance = 80
|
||||
syllables = list("squeak")
|
||||
flags = RESTRICTED
|
||||
|
||||
// Language handling.
|
||||
/mob/proc/add_language(var/language)
|
||||
|
||||
@@ -65,6 +65,8 @@
|
||||
icon_living = "mouse_[_color]"
|
||||
icon_dead = "mouse_[_color]_dead"
|
||||
desc = "It's a small [_color] rodent, often seen hiding in maintenance areas and making a nuisance of itself."
|
||||
add_language("Mouse")
|
||||
default_language = all_languages["Mouse"]
|
||||
|
||||
|
||||
/mob/living/simple_animal/mouse/proc/splat()
|
||||
|
||||
@@ -1185,6 +1185,7 @@ var/list/RESTRICTED_CAMERA_NETWORKS = list( //Those networks can only be accesse
|
||||
#define LANGUAGE_MONKEY "Monkey"
|
||||
#define LANGUAGE_VOX "Vox-pidgin"
|
||||
#define LANGUAGE_CULT "Cult"
|
||||
//#define LANGUAGE_MOUSE "Mouse" // This broke the code, so fuck it
|
||||
|
||||
//#define SAY_DEBUG 1
|
||||
#ifdef SAY_DEBUG
|
||||
|
||||
Reference in New Issue
Block a user