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

Method nextPage

code/main/Cauldron.ts:295–305  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

293 }
294
295 private nextPage(): void{
296 // If we can go to the next page
297 if(Saving.loadNumber("cauldronBookCurrentPage") < this.maxPage){
298 // Change the current page number
299 Saving.saveNumber("cauldronBookCurrentPage", Saving.loadNumber("cauldronBookCurrentPage") + 2);
300
301 // Update
302 this.update();
303 this.getGame().updatePlace();
304 }
305 }
306
307 private previousPage(): void{
308 // If we can go to the previous page

Callers

nothing calls this directly

Calls 3

updateMethod · 0.95
updatePlaceMethod · 0.80
getGameMethod · 0.45

Tested by

no test coverage detected