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

Method update

code/main/SeaSnake.ts:36–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34
35 // update()
36 public update(): void{
37 // Launch a magic ball! (2 chances out of 3 to launch one)
38 if(Random.oneChanceOutOf(3) == false) this.castWaterBall();
39
40 // Call the mother class update method
41 super.update();
42 }
43
44 // Private methods
45 private castWaterBall(): void{

Callers

nothing calls this directly

Calls 1

castWaterBallMethod · 0.95

Tested by

no test coverage detected