We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25c6509 commit e985af0Copy full SHA for e985af0
src/Gamemodes/Survival.ts
@@ -27,6 +27,7 @@ import { ArenaFlags, ClientBound } from "../Const/Enums";
27
import { countdownDuration, scoreboardUpdateInterval } from "../config";
28
29
const MIN_PLAYERS = 4; // 6 in Diep.io
30
+const SCORE_PER_TICK = 0.25;
31
32
/**
33
* Manage shape count
@@ -121,7 +122,7 @@ export default class SurvivalArena extends ArenaEntity {
121
122
public tick(tick: number) {
123
for (const client of this.game.clients) {
124
const camera = client.camera;
- if (camera && Entity.exists(camera.cameraData.values.player)) camera.cameraData.score += 0.2;
125
+ if (camera && Entity.exists(camera.cameraData.values.player)) camera.addScore(SCORE_PER_TICK);
126
}
127
super.tick(tick);
128
0 commit comments