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

Method takeObject

code/main/CastleRoom2.ts:146–159  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

144 }
145
146 private takeObject(): void{
147 // Set the bool
148 Saving.saveBool("castleRoom2TookObject", true);
149
150 // Take it
151 this.getGame().gainItem("gridItemPossessedPitchfork");
152
153 // Re-calc the farm production
154 this.getGame().calcLollipopFarmProduction();
155
156 // Update
157 this.update();
158 this.getGame().updatePlace();
159 }
160}

Callers

nothing calls this directly

Calls 5

updateMethod · 0.95
gainItemMethod · 0.80
updatePlaceMethod · 0.80
getGameMethod · 0.45

Tested by

no test coverage detected