()
| 260 | } |
| 261 | |
| 262 | private goToLose(): void{ |
| 263 | // Change the step |
| 264 | this.step = GalacticWarsStep.LOSE; |
| 265 | |
| 266 | // Get the candies |
| 267 | this.getThirdHouse().getGame().getCandies().add(this.score + Algo.correctIfUnderZero(this.score-1000)*30); |
| 268 | |
| 269 | // Update the best score |
| 270 | if(this.score > Saving.loadNumber("galacticWarsBestScore")) Saving.saveNumber("galacticWarsBestScore", this.score); |
| 271 | } |
| 272 | |
| 273 | private goToGame(): void{ |
| 274 | // Change the step |
no test coverage detected