Skip to content

Commit

Permalink
Remove leftover debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
bm01 committed Nov 13, 2024
1 parent aed2c1a commit e4e7782
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions GameServer/ECS-Components/AttackComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,7 @@ public DbInventoryItem GetAttackAmmo()
// Returns the ammo used by the current `WeaponAction` if there's any.
// The currently active ammo otherwise.
DbInventoryItem ammo = weaponAction?.Ammo;
(owner as GamePlayer)?.Out.SendMessage($"1 {ammo?.Name}", eChatType.CT_Say, eChatLoc.CL_ChatWindow);
ammo ??= owner.rangeAttackComponent.Ammo;
(owner as GamePlayer)?.Out.SendMessage($"2 {ammo?.Name}", eChatType.CT_Say, eChatLoc.CL_ChatWindow);
return ammo;
}

Expand Down
3 changes: 0 additions & 3 deletions GameServer/ECS-Components/RangeAttackComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ public DbInventoryItem UpdateAmmo(DbInventoryItem weapon)
}
}

if (_owner is GamePlayer p)
p.Out.SendMessage($"update ammo {Ammo.Count} {Ammo.PendingDatabaseAction}", eChatType.CT_Say, eChatLoc.CL_ChatWindow);

return Ammo;

DbInventoryItem GetAmmoFromInventory(eObjectType ammoType)
Expand Down

0 comments on commit e4e7782

Please sign in to comment.