Refactored Main Menu UI implementation. Fixed several bugs related to recent JS -> TypeScript refactors

This commit is contained in:
danielyxie
2019-01-18 09:57:21 -08:00
parent aac262b736
commit 7db169f828
16 changed files with 14842 additions and 13117 deletions
+2 -2
View File
@@ -153,8 +153,8 @@ function evaluateVersionCompatibility(ver) {
}
// This version allowed players to hold multiple jobs
if (ver <= "0.43.0") {
if (Player.companyName !== "" && Player.companyPosition !== "") {
if (ver < "0.43.0") {
if (Player.companyName !== "" && Player.companyPosition != null && Player.companyPosition !== "") {
console.log("Copied player's companyName and companyPosition properties to the Player.jobs map for v0.43.0");
Player.jobs[Player.companyName] = Player.companyPosition;
}