OverHaul Bus and Pilot TEST

This commit is contained in:
2021-04-10 01:32:12 +02:00
parent cb020aa007
commit b51756a045
14 changed files with 836 additions and 1336 deletions

View File

@@ -362,24 +362,24 @@ export default function (globalData: IGlobalData) {
var busLevel;
if (jobdata.pilotskill >= 300) {
pilotLevel = 2;
pilotLevel = "Fortgeschrittener";
} else {
pilotLevel = 1;
pilotLevel = "Anfänger";
}
if (jobdata.busskill >= 800) {
busLevel = 3;
busLevel = "Profi";
} else if (jobdata.busskill >= 300) {
busLevel = 2;
busLevel = "Fortgeschrittener";
} else {
busLevel = 1;
busLevel = "Anfänger";
}
var actJobItem = new UIMenuItem("Aktueller Job:");
actJobItem.SetRightLabel(jobdata.job)
jobMenu.AddItem(actJobItem);
var pilotSkillItem = new UIMenuItem("Pilot Skill (LVL " + pilotLevel + ")");
var pilotSkillItem = new UIMenuItem("Pilot Skill (" + pilotLevel + ")");
switch (pilotLevel) {
case 1:
pilotSkillItem.SetRightLabel(jobdata.pilotskill + "/300")
@@ -390,7 +390,7 @@ export default function (globalData: IGlobalData) {
}
jobMenu.AddItem(pilotSkillItem);
var busSkillItem = new UIMenuItem("Bus Skill (LVL " + busLevel + ")");
var busSkillItem = new UIMenuItem("Bus Skill (" + busLevel + ")");
switch (busLevel) {
case 1:
busSkillItem.SetRightLabel(jobdata.busskill + "/300")