diff --git a/src/mod.ts b/src/mod.ts index e911e26..3619859 100644 --- a/src/mod.ts +++ b/src/mod.ts @@ -44,7 +44,7 @@ class ValensProgression implements IPostDBLoadMod, IPreAkiLoadMod this.staticRouterModService = container.resolve("StaticRouterModService"); - this.progression = new Progression(vLogger, this.botConfig, this.databaseServer, this.playerService, this.profileController, this.applicationContext, this.staticRouterModService); + this.progression = new Progression(vLogger, this.databaseServer, this.botConfig); this.progression.updateProgression(); } @@ -73,8 +73,8 @@ class ValensProgression implements IPostDBLoadMod, IPreAkiLoadMod { const profile = this.profileController.getCompleteProfile(sessionId); const playerLevel = this.playerService.calculateLevel(profile[0]); // find(x=>x._id === sessionId) - const usecLvl = this.databaseServer.bots["usec"].experience.level; - const bearLvl = this.databaseServer.bots["bear"].experience.level; + const usecLvl = this.databaseServer.getTables().bots["usec"].experience.level; + const bearLvl = this.databaseServer.getTables().bots["bear"].experience.level; if (playerLevel >= 1 && playerLevel <= 15) {