|
@@ -107,12 +107,13 @@ class NPC{
|
|
|
}
|
|
|
get titlename(){return `${this.title} ${this.get('lastname')}`;}
|
|
|
get usedname(){
|
|
|
- switch (this.get('nameScheme','firstname')) {
|
|
|
+ switch (this.get('nameScheme')) {
|
|
|
case 'title_lastname':
|
|
|
return this.titlename;
|
|
|
case 'firstname':
|
|
|
- default:
|
|
|
return this.get('firstname');
|
|
|
+ default:
|
|
|
+ return this.get('nickname') || this.get('firstname');
|
|
|
}
|
|
|
}
|
|
|
|