()
| 175 | } |
| 176 | |
| 177 | setupGod () { |
| 178 | const level = this.level.serialize({ supermodel: this.supermodel, session: this.session, otherSession: null, headless: true, sessionless: false }) |
| 179 | if (this.checkClampedProperties) { |
| 180 | this.prepareTestingLevel(level) |
| 181 | } |
| 182 | this.god.setLevel(level) |
| 183 | this.god.setLevelSessionIDs([this.session.id]) |
| 184 | this.god.setWorldClassMap(this.world.classMap) |
| 185 | this.god.lastFlagHistory = this.session.get('state').flagHistory |
| 186 | this.god.lastDifficulty = this.session.get('state').difficulty |
| 187 | this.god.lastFixedSeed = this.session.solution.seed |
| 188 | this.god.lastSubmissionCount = 0 |
| 189 | } |
| 190 | |
| 191 | initGoalManager () { |
| 192 | this.goalManager = new GoalManager(this.world, this.level.get('goals'), this.team) |
no test coverage detected