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

Method openCupboard

code/main/FourthHouse.ts:112–121  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

110 }
111
112 private openCupboard(): void{
113 // If the cupboard isn't opened yet
114 if(Saving.loadNumber("fourthHouseCupboardStep") == 0){
115 // Set the step
116 Saving.saveNumber("fourthHouseCupboardStep", 1);
117 // Update
118 this.update();
119 this.getGame().updatePlace();
120 }
121 }
122
123 private pickCarpetLollipop(): void{
124 // If the lollipop is outside the carpet

Callers

nothing calls this directly

Calls 3

updateMethod · 0.95
updatePlaceMethod · 0.80
getGameMethod · 0.45

Tested by

no test coverage detected