Commit 04439e00 authored by Matt Eland's avatar Matt Eland

Fix: Move to level 2 instead of level 5 after level 1, clear admin

parent 486a22cf
......@@ -52,7 +52,7 @@ export class WorldService implements IInitializable, IContextComponent {
switch (this.currentLevelType) {
case GameLevelType.level1:
nextLevelType = GameLevelType.bossLevel;
nextLevelType = GameLevelType.level2;
break;
case GameLevelType.level2:
......@@ -78,6 +78,9 @@ export class WorldService implements IInitializable, IContextComponent {
Logger.debug(`Advancing to level ${nextLevelType} from ${this._currentLevelType}`);
this._currentLevelType = nextLevelType;
// Ensure the admin access is gone before moving on
this.player.hasAdminAccess = false;
this.startLevel();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment