Skip to content

Commit

Permalink
Fix scopeLevel reset on roundEnd
Browse files Browse the repository at this point in the history
  • Loading branch information
solcloud committed Oct 1, 2023
1 parent ad6efe8 commit 1eb99bb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/Core/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function canBeEquipped(): bool

public function reset(): void
{
// empty hook
$this->scopeLevel = 0;
}

public function isUserDroppable(): bool
Expand Down
1 change: 1 addition & 0 deletions server/src/Equipment/Bomb.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public function getSlot(): InventorySlot

public function reset(): void
{
parent::reset();
$this->plantTickCount = 0;
$this->defuseTickCount = 0;
}
Expand Down
1 change: 1 addition & 0 deletions server/src/Weapon/AmmoBasedWeapon.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public function unEquip(): void

public function reset(): void
{
parent::reset();
$this->ammo = static::magazineCapacity;
$this->ammoReserve = static::reserveAmmo;
$this->reloading = false;
Expand Down

0 comments on commit 1eb99bb

Please sign in to comment.