character overview in mui

This commit is contained in:
Olivier Gagnon
2021-09-16 17:30:47 -04:00
parent 088657f162
commit f0f57150aa
6 changed files with 217 additions and 249 deletions
@@ -197,12 +197,6 @@ export function prestigeSourceFile() {
}
}
const characterMenuHeader = document.getElementById("character-menu-header");
if (characterMenuHeader instanceof HTMLElement) {
characterMenuHeader.click();
characterMenuHeader.click();
}
this.timeWorked = 0;
// Gang
@@ -2065,9 +2059,6 @@ export function applyForJob(entryPosType, sing = false) {
this.jobs[company.name] = pos.name;
this.companyName = this.location;
document.getElementById("world-menu-header").click();
document.getElementById("world-menu-header").click();
if (sing) {
return true;
}
@@ -2183,8 +2174,6 @@ export function applyForEmployeeJob(sing = false) {
if (this.isQualified(company, CompanyPositions[posNames.MiscCompanyPositions[1]])) {
this.companyName = company.name;
this.jobs[company.name] = posNames.MiscCompanyPositions[1];
document.getElementById("world-menu-header").click();
document.getElementById("world-menu-header").click();
if (sing) {
return true;
}
@@ -2201,8 +2190,6 @@ export function applyForPartTimeEmployeeJob(sing = false) {
var company = Companies[this.location]; //Company being applied to
if (this.isQualified(company, CompanyPositions[posNames.PartTimeCompanyPositions[1]])) {
this.jobs[company.name] = posNames.PartTimeCompanyPositions[1];
document.getElementById("world-menu-header").click();
document.getElementById("world-menu-header").click();
if (sing) {
return true;
}
@@ -2220,8 +2207,6 @@ export function applyForWaiterJob(sing = false) {
if (this.isQualified(company, CompanyPositions[posNames.MiscCompanyPositions[0]])) {
this.companyName = company.name;
this.jobs[company.name] = posNames.MiscCompanyPositions[0];
document.getElementById("world-menu-header").click();
document.getElementById("world-menu-header").click();
if (sing) {
return true;
}
@@ -2239,8 +2224,6 @@ export function applyForPartTimeWaiterJob(sing = false) {
if (this.isQualified(company, CompanyPositions[posNames.PartTimeCompanyPositions[0]])) {
this.companyName = company.name;
this.jobs[company.name] = posNames.PartTimeCompanyPositions[0];
document.getElementById("world-menu-header").click();
document.getElementById("world-menu-header").click();
if (sing) {
return true;
}