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

Method castWaterBall

code/main/Seahorse.ts:47–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45
46 // Private methods
47 private castWaterBall(): void{
48 // Create the waterBall
49 var waterBall: Fireball = new Fireball(this.getQuest(),
50 this.getGlobalPosition().plus(new Pos(-2, 0)),
51 new Naming("A magical water ball", "a magical water ball"),
52 new Color(ColorType.SEAHORSE_WATER_BALL),
53 new Pos(2, 1),
54 70,
55 this.getAndPossiblyCreateSpellCastingDamageReason(new Naming("A magical water ball", "a magical water ball"))
56 );
57
58 // No target
59 waterBall.setTargetTypeNoTarget(new Pos(-2, 0));
60
61 // Add the entity
62 this.getQuest().addEntity(waterBall);
63 }
64
65 // willDie()
66 public willDie(): void{

Callers

nothing calls this directly

Calls 6

setTargetTypeNoTargetMethod · 0.95
getQuestMethod · 0.80
plusMethod · 0.80
getGlobalPositionMethod · 0.80
addEntityMethod · 0.80

Tested by

no test coverage detected