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

Method pickCarpetLollipop

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

Source from the content-addressed store, hash-verified

121 }
122
123 private pickCarpetLollipop(): void{
124 // If the lollipop is outside the carpet
125 if(Saving.loadNumber("fourthHouseCarpetStep") == 1){
126 // Set the step
127 Saving.saveNumber("fourthHouseCarpetStep", 2);
128 // Add one lollipop
129 this.getGame().getLollipops().add(1);
130 // Update
131 this.update();
132 this.getGame().updatePlace();
133 }
134 }
135
136 private takeLollipopInsideCupboard(): void{
137 // If the cupboard is opened with the lollipop inside it

Callers

nothing calls this directly

Calls 5

updateMethod · 0.95
updatePlaceMethod · 0.80
addMethod · 0.65
getLollipopsMethod · 0.45
getGameMethod · 0.45

Tested by

no test coverage detected