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

Method goToFarm

code/main/MainMap.ts:102–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100 }
101
102 private goToFarm(): void{
103 Saving.saveBool("statusBarUnlockedLollipopFarm", true); // We unlock the farm tab
104 this.getGame().updateStatusBar(true); // We update the status bar
105 this.getGame().getStatusBar().selectTabByType(StatusBarTabType.FARM); // We select the farm tab
106 this.getGame().goToLollipopFarm(); // We show the farm
107 }
108
109 private goToForest(): void{
110 this.getGame().setPlace(new Forest(this.getGame()));

Callers

nothing calls this directly

Calls 5

updateStatusBarMethod · 0.80
selectTabByTypeMethod · 0.80
getStatusBarMethod · 0.80
goToLollipopFarmMethod · 0.80
getGameMethod · 0.45

Tested by

no test coverage detected