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

Method update

code/main/LollipopFarm.ts:425–440  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

423 }
424
425 private update(): void{
426 // Reset
427 this.renderArea.resetAllButSize();
428
429 // Draw the farm
430 this.renderArea.drawArray(Database.getAscii("places/lollipopFarm/lollipopFarm"), 0, 5);
431
432 // Draw the field stuff
433 this.drawFieldStuff(1, 34);
434
435 // Draw the mill stuff
436 this.drawMillStuff(7, 0);
437
438 // Draw the pond stuff
439 this.drawPondStuff(50, 14);
440 }
441
442 private updatePondConversionRate(): void{
443 Saving.saveNumber("lollipopFarmPondConversionRate", Math.ceil(Saving.loadNumber("lollipopFarmPondHowManyLolligators") * 3 + Math.pow(1.3, Saving.loadNumber("lollipopFarmPondHowManyLolligators"))));

Callers 10

constructorMethod · 0.95
buyLolligatorMethod · 0.95
checkLollipopsMethod · 0.95
constructMillMethod · 0.95
digPondMethod · 0.95
feedMillMethod · 0.95
handlePondMethod · 0.95
plantLollipopsMethod · 0.95

Calls 6

drawFieldStuffMethod · 0.95
drawMillStuffMethod · 0.95
drawPondStuffMethod · 0.95
resetAllButSizeMethod · 0.80
drawArrayMethod · 0.80
getAsciiMethod · 0.80

Tested by

no test coverage detected