Fixes null language runtime, adds mouse language

This commit is contained in:
Sood
2016-01-01 23:27:33 -08:00
parent ca1e3ed7c3
commit d8820c4fe0
4 changed files with 18 additions and 3 deletions

View File

@@ -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=" ")

View File

@@ -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)

View File

@@ -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()

View File

@@ -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