diff --git a/src/js/assayJS.tw b/src/js/assayJS.tw index c00d6ab477abb7b7ee186c59c6397cc1f0bc87b7..bd1b9a9d81575da65bbcfe67cfff33e667354362 100644 --- a/src/js/assayJS.tw +++ b/src/js/assayJS.tw @@ -429,8 +429,8 @@ window.SlaveFullName = function SlaveFullName(slave) { }; window.PlayerName = function PlayerName() { - const V = State.variables; - const surnamesFirstCountries = [ + const V = State.variables; + const surnamesFirstCountries = [ "Cambodian", "Chinese", "Hungarian", @@ -439,9 +439,9 @@ window.PlayerName = function PlayerName() { "Mongolian", "Taiwanese", "Vietnamese"]; - let names = [V.PC.name, V.PC.surname || ""]; - - if ((V.surnameOrder !== 1) && (surnamesFirstCountries.includes(V.PC.nationality))) + let names = [V.PC.name, V.PC.surname || ""]; + + if ((V.surnameOrder !== 1) && (surnamesFirstCountries.includes(V.PC.nationality))) names.reverse(); return names.join(" ").trim(); };