MCPcopy Create free account
hub / github.com/candybox2/candybox2.github.io / postLoad

Method postLoad

code/main/Game.ts:307–322  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

305 }
306
307 public postLoad(): void{
308 // We re calc the player hp
309 this.player.reCalcMaxHp();
310
311 // We update the status bar
312 this.updateStatusBar(true);
313
314 // Select correct items
315 this.emptyAndFillSelectedEqItemsArray();
316
317 // We go to the candy box
318 this.goToCandyBox();
319
320 // And we set the saved place (the village)
321 this.savedPlace = new Village(this);
322 }
323
324 public resetPlayer(): void{
325 // Save some important things

Callers 1

startFunction · 0.80

Calls 4

updateStatusBarMethod · 0.95
goToCandyBoxMethod · 0.95
reCalcMaxHpMethod · 0.80

Tested by

no test coverage detected