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

Method addCamel

code/main/Desert.ts:154–164  ·  view source on GitHub ↗
(pos: Pos)

Source from the content-addressed store, hash-verified

152 }
153
154 private addCamel(pos: Pos): void{
155 var camel: QuestEntity;
156
157 if(Random.oneChanceOutOf(20))
158 camel = new TripodCamel(this, pos);
159 else
160 camel = new Camel(this, pos);
161
162 camel.setHealthBar(new QuestEntityHealthBar(camel, new Pos(7, 1)));
163 this.addEntity(camel);
164 }
165
166 private addGround(...positions: number[]): void{
167 // Create the wall entity

Callers 1

constructorMethod · 0.95

Calls 2

setHealthBarMethod · 0.80
addEntityMethod · 0.80

Tested by

no test coverage detected