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

Method previousPage

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

Source from the content-addressed store, hash-verified

305 }
306
307 private previousPage(): void{
308 // If we can go to the previous page
309 if(Saving.loadNumber("cauldronBookCurrentPage") > 0){
310 // Change the current page number
311 Saving.saveNumber("cauldronBookCurrentPage", Saving.loadNumber("cauldronBookCurrentPage") - 2);
312
313 // Update
314 this.update();
315 this.getGame().updatePlace();
316 }
317 }
318
319 private putInCauldron(): void{
320 // Used to know if we will have to update and return

Callers

nothing calls this directly

Calls 3

updateMethod · 0.95
updatePlaceMethod · 0.80
getGameMethod · 0.45

Tested by

no test coverage detected