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

Method addRat

code/main/Cellar.ts:85–89  ·  view source on GitHub ↗
(pos: Pos)

Source from the content-addressed store, hash-verified

83 }
84
85 private addRat(pos: Pos): void{
86 var rat: Rat = new Rat(this, pos);
87 rat.setHealthBar(new QuestEntityHealthBar(rat, new Pos(3, 1)));
88 this.addEntity(rat);
89 }
90
91 private addRats(): void{
92 for(var i = 5; i <= 95; i++){

Callers 1

addRatsMethod · 0.95

Calls 2

setHealthBarMethod · 0.80
addEntityMethod · 0.80

Tested by

no test coverage detected