Skip to content

Commit e985af0

Browse files
Fix survival
1 parent 25c6509 commit e985af0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Gamemodes/Survival.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import { ArenaFlags, ClientBound } from "../Const/Enums";
2727
import { countdownDuration, scoreboardUpdateInterval } from "../config";
2828

2929
const MIN_PLAYERS = 4; // 6 in Diep.io
30+
const SCORE_PER_TICK = 0.25;
3031

3132
/**
3233
* Manage shape count
@@ -121,7 +122,7 @@ export default class SurvivalArena extends ArenaEntity {
121122
public tick(tick: number) {
122123
for (const client of this.game.clients) {
123124
const camera = client.camera;
124-
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);
125126
}
126127
super.tick(tick);
127128
}

0 commit comments

Comments
 (0)