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

Method handleDropADemon

code/main/Camazotz.ts:85–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83 }
84
85 private handleDropADemon(): void{
86 // If it's time to add one
87 if(this.dropADemonTimer < 0){
88 // Drop a demon and reset the timer
89 this.dropADemon();
90 this.resetDropADemonTimer();
91 }
92 // Else
93 else{
94 // Decrese the timer
95 this.dropADemonTimer -= 1;
96 }
97 }
98
99 private handleMovementTowardsPlayer(): void{
100 // If we try to move

Callers 1

updateMethod · 0.95

Calls 2

dropADemonMethod · 0.95
resetDropADemonTimerMethod · 0.95

Tested by

no test coverage detected