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

Method takeTheBox

code/main/LonelyHouse.ts:64–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62 }
63
64 private takeTheBox(): void{
65 // Change the bool
66 Saving.saveBool("lonelyHouseTakeTheBoxDone", true);
67
68 // We update
69 this.update();
70
71 // Select the candy box tab
72 this.getGame().getStatusBar().selectTabByType(StatusBarTabType.CANDY_BOX);
73
74 // Go to the candy box
75 this.getGame().goToCandyBox();
76 }
77
78 private update(): void{
79 // Erase everything

Callers

nothing calls this directly

Calls 5

updateMethod · 0.95
selectTabByTypeMethod · 0.80
getStatusBarMethod · 0.80
goToCandyBoxMethod · 0.80
getGameMethod · 0.45

Tested by

no test coverage detected