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

Method castPlayerJump

code/main/Quest.ts:283–290  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

281 }
282
283 public castPlayerJump(): void{
284 // If we don't have the feather
285 if(Saving.loadBool("gridItemPossessedFeather") == false)
286 this.getGame().getPlayer().jump(3);
287 // Else, we have the feather
288 else
289 this.getGame().getPlayer().jump(6);
290 }
291
292 public castPlayerObsidianWall(): void{
293 // X position of the wall

Callers

nothing calls this directly

Calls 3

getPlayerMethod · 0.80
jumpMethod · 0.45
getGameMethod · 0.45

Tested by

no test coverage detected