Compare commits

..

1 Commits

Author SHA1 Message Date
1d9716b5eb
load name variants
global stinx
2020-08-11 12:21:55 -04:00

View File

@ -976,7 +976,11 @@ class Player {
nameToUse = cur.Arg1; nameToUse = cur.Arg1;
} }
let nameFullWidth = nameToUse.replace(/[A-Za-z0-9]/g, function(s) {return String.fromCharCode(s.charCodeAt(0) + 0xFEE0);}); let nameFullWidth = nameToUse.replace(/[A-Za-z0-9]/g, function(s) {return String.fromCharCode(s.charCodeAt(0) + 0xFEE0);});
this.text.characterName(true, this.utage.charTranslations[nameToUse] || this.utage.charTranslations[nameFullWidth] || nameToUse); let nameHalfWidth = nameToUse.replace(/[---]/g, function(s) {return String.fromCharCode(s.charCodeAt(0) - 0xFEE0)});
this.text.characterName(true, this.utage.charTranslations[nameToUse]
|| this.utage.charTranslations[nameFullWidth]
|| this.utage.charTranslations[nameHalfWidth]
|| nameToUse);
this.text.dialogText(true, text); this.text.dialogText(true, text);
//restoreTint is set from a colorTo command. //restoreTint is set from a colorTo command.
//We want to maintain the tint change from colorTo during speaking still. //We want to maintain the tint change from colorTo during speaking still.