fix end terminal pluralisation

This commit is contained in:
2023-05-16 13:46:15 +02:00
parent 64a3eba203
commit 1b2a6395c4
6 changed files with 39 additions and 7 deletions

View File

@@ -22,7 +22,7 @@ namespace Station46.Modules.End_Terminal.Scripts
var currentText = text.text;
currentText = value == 1
? currentText.Replace("beacons", "beacon")
: currentText.Replace("beacon", "beacons");
: currentText.Replace("beacon\n", "beacons\n");
text.text = value + currentText[currentText.IndexOf(' ')..];
}
}