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

Method createPlayerAcidDrop

code/main/Quest.ts:812–827  ·  view source on GitHub ↗
(position: Pos)

Source from the content-addressed store, hash-verified

810 }
811
812 private createPlayerAcidDrop(position: Pos): Fireball{
813 var acidDrop: Fireball = new Fireball(this,
814 position,
815 new Naming("An acid drop", "an acid drop"),
816 new Color(ColorType.PLAYER_ACID_DROP),
817 new Pos(1, 1),
818 8,
819 this.getGame().getPlayer().getAndPossiblyCreateSpellCastingDamageReason(new Naming("An acid drop", "an acid drop"))
820 );
821
822 // No target
823 acidDrop.setTargetTypeNoTarget(new Pos(0, 1));
824
825 // Return the acid drop
826 return acidDrop;
827 }
828
829 private createPlayerSpells(): void{
830 // Add the spells

Callers 1

castPlayerAcidRainMethod · 0.95

Calls 4

setTargetTypeNoTargetMethod · 0.95
getPlayerMethod · 0.80
getGameMethod · 0.45

Tested by

no test coverage detected