Attempts to fix old character save files in a slightly nicer way. Should mean there's no difference with converted characters, but you never know.

This commit is contained in:
GinjaNinja32
2015-07-11 23:24:56 +01:00
parent 7efa017dc7
commit 64da8265a9

View File

@@ -114,13 +114,23 @@
alternate_languages = list()
if(!islist(alternate_languages))
if(client)
// Warn them that we just broke their languages
// Warn them that we (probably) just broke their languages
client << "<span class='danger'>Your current character slot's languages list has been updated from an old version, and may not be what you expect.</span>"
if(alternate_languages in all_languages)
alternate_languages = list(alternate_languages)
else
alternate_languages = list()
// try to give them their species language
var/datum/species/SP = all_species[species]
if(SP)
alternate_languages |= SP.language
alternate_languages |= SP.default_language
// remove the Galcom that most races have as default_language
alternate_languages -= "Galactic Common"
//colors to be consolidated into hex strings (requires some work with dna code)
S["hair_red"] >> r_hair
S["hair_green"] >> g_hair