Skip to content

Commit 062aa57

Browse files
author
Picoseconds
committed
fix: fix some things not resetting on death
1 parent 4fd28e4 commit 062aa57

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/moomoo/Game.ts

+2
Original file line numberDiff line numberDiff line change
@@ -716,6 +716,8 @@ export default class Game {
716716
newPlayer = player;
717717
}
718718

719+
this.sendLeaderboardUpdates();
720+
719721
newPlayer.location = randomPos(14400, 14400);
720722
newPlayer.name =
721723
packet.data[0].name > 15 || packet.data[0].name === ""

src/moomoo/Player.ts

+2
Original file line numberDiff line numberDiff line change
@@ -415,13 +415,15 @@ export default class Player extends Entity {
415415
this.secondaryWeaponVariant = WeaponVariant.Normal;
416416
this.age = 1;
417417
this.xp = 0;
418+
this.inTrap = false;
418419
this.buildItem = -1;
419420
this.autoAttackOn = false;
420421
this.disableRotation = false;
421422
this.moveDirection = null;
422423
this.items = [ItemType.Apple, ItemType.WoodWall, ItemType.Spikes, ItemType.Windmill];
423424

424425
this.upgradeAge = 2;
426+
this.maxXP = 300;
425427
this.kills = 0;
426428
this.points = 0;
427429
this.food = 0;

0 commit comments

Comments
 (0)