Skip to content
Snippets Groups Projects
Commit c6fa4376 authored by lowercasedonkey's avatar lowercasedonkey
Browse files

improve handling of lastname

parent 2f203a7f
No related branches found
No related tags found
No related merge requests found
...@@ -65,17 +65,18 @@ App.UI.Player.names = function(options) { ...@@ -65,17 +65,18 @@ App.UI.Player.names = function(options) {
if (V.cheatMode) { if (V.cheatMode) {
options.addOption("Birth Name", "birthName", V.PC).showTextBox(); options.addOption("Birth Name", "birthName", V.PC).showTextBox();
options.addOption("Surname", "slaveSurname", V.PC).showTextBox(); }
options.addOption("Birth Surname", "birthSurname", V.PC).showTextBox();
if (V.PC.slaveSurname === 0) {
options.addOption("And no surname", "slaveSurname", V.PC)
.addValue("Add a surname", "Anon")
.addComment("Surnames cannot be changed during the game outside of special circumstances.");
} else { } else {
if (V.PC.slaveSurname === 0) { options.addOption("And your surname is", "slaveSurname", V.PC).showTextBox()
options.addOption("And no surname", "slaveSurname", V.PC) .addValue("Go by a single name", 0)
.addValue("Add a surname", "Anon") .addComment("Surnames cannot be changed during the game outside of special circumstances.");
.addComment("Surnames cannot be changed during the game outside of special circumstances."); if (V.cheatMode) {
} else { options.addOption("Birth Surname", "birthSurname", V.PC).showTextBox();
options.addOption("And your surname is", "slaveSurname", V.PC).showTextBox()
.addValue("Go by a single name", 0)
.addComment("Surnames cannot be changed during the game outside of special circumstances.");
} }
} }
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment