converted everything to ts

This commit is contained in:
Olivier Gagnon
2021-06-16 18:38:29 -04:00
parent 43d0fcb9f9
commit 07cca48a17
13 changed files with 585 additions and 501 deletions
+3 -2
View File
@@ -32,6 +32,7 @@ import {
processPassiveFactionRepGain,
inviteToFaction,
} from "./Faction/FactionHelpers";
import { displayGangContent, clearGangUI } from "./Gang/Helpers";
import { displayInfiltrationContent } from "./Infiltration/Helper";
import {
getHackingWorkRepGain,
@@ -439,7 +440,7 @@ const Engine = {
loadGangContent: function() {
Engine.hideAllContent();
if (document.getElementById("gang-container") || Player.inGang()) {
Player.gang.displayGangContent(Player);
displayGangContent(this, Player.gang, Player);
routing.navigateTo(Page.Gang);
} else {
Engine.loadTerminalContent();
@@ -534,7 +535,7 @@ const Engine = {
}
if (Player.inGang()) {
Player.gang.clearUI();
clearGangUI();
}
if (Player.corporation instanceof Corporation) {
Player.corporation.clearUI();