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

Method goToLose

code/main/SuperRPG.ts:241–251  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

239 }
240
241 private goToLose(): void{
242 // No more menu
243 this.menu = null;
244
245 // Change the step
246 this.step = SuperRPGStep.LOSE;
247
248 // Get the candies
249 this.reward = this.getCandiesWeWillGain();
250 this.getThirdHouse().getGame().getCandies().add(this.reward);
251 }
252
253 private goToMainMenu(): void{
254 // Change the step

Callers 1

setHpMethod · 0.95

Calls 5

getCandiesWeWillGainMethod · 0.95
getThirdHouseMethod · 0.80
addMethod · 0.65
getCandiesMethod · 0.45
getGameMethod · 0.45

Tested by

no test coverage detected