From 2bd03c532b932aaf0b3b696a9abd29853a026a82 Mon Sep 17 00:00:00 2001 From: Lucca Faria Ferri Date: Fri, 27 Jan 2023 13:23:06 -0800 Subject: [PATCH] Removed warn messages added for testing. --- src/DiIiS-NA/BGS-Server/AccountsSystem/Account.cs | 4 ++-- .../D3-GameServer/GSSystem/PlayerSystem/Inventory.cs | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/DiIiS-NA/BGS-Server/AccountsSystem/Account.cs b/src/DiIiS-NA/BGS-Server/AccountsSystem/Account.cs index d458094..d75ee4a 100644 --- a/src/DiIiS-NA/BGS-Server/AccountsSystem/Account.cs +++ b/src/DiIiS-NA/BGS-Server/AccountsSystem/Account.cs @@ -203,8 +203,8 @@ namespace DiIiS_NA.LoginServer.AccountsSystem if(GameAccount.ProgramField.Value == "APP") return string.Format("{0}", DBAccount.BattleTagName); else if (GameAccount.ProgramField.Value == "D3") - return string.Format("{0}", DBAccount.BattleTagName); - //return string.Format(staff ? " {{icon:bnet}} {{c_legendary}}{0}{{/c}}" : ("{0}"), this.DBAccount.BattleTagName); + //return string.Format("{0}", DBAccount.BattleTagName); + return string.Format(staff ? " {{icon:bnet}} {{c_legendary}}{0}{{/c}}" : ("{0}"), this.DBAccount.BattleTagName); else return string.Format("{0}", DBAccount.BattleTagName); //return (staff ? " {icon:bnet} " : (premium ? " {icon:gold} " : "")) + dbAcc.BattleTagName; diff --git a/src/DiIiS-NA/D3-GameServer/GSSystem/PlayerSystem/Inventory.cs b/src/DiIiS-NA/D3-GameServer/GSSystem/PlayerSystem/Inventory.cs index c0cefd4..cb34ae0 100644 --- a/src/DiIiS-NA/D3-GameServer/GSSystem/PlayerSystem/Inventory.cs +++ b/src/DiIiS-NA/D3-GameServer/GSSystem/PlayerSystem/Inventory.cs @@ -2254,12 +2254,12 @@ namespace DiIiS_NA.GameServer.GSSystem.PlayerSystem if (_inventoryGold != null) { - Logger.Warn($"InventoryGold is $[bold red]$NOT$[/]$ null: {_inventoryGold.Attributes[GameAttribute.Gold]}"); + // Logger.Warn($"InventoryGold is $[bold red]$NOT$[/]$ null: {_inventoryGold.Attributes[GameAttribute.Gold]}"); return _inventoryGold.Attributes[GameAttribute.Gold]; } else { - Logger.Warn($"InventoryGold is $[bold red]$NULL$[/]$"); + // Logger.Warn($"InventoryGold is $[bold red]$NULL$[/]$"); return -1; } @@ -2348,7 +2348,7 @@ namespace DiIiS_NA.GameServer.GSSystem.PlayerSystem Item item = null; int goldAmount = (int)_owner.World.Game.GameDBSession.SessionGet(_owner.Toon.GameAccount.PersistentID).Gold; - Logger.Warn($"User {this._owner.Toon.PersistentID} has {goldAmount} gold."); + // Logger.Warn($"User {this._owner.Toon.PersistentID} has {goldAmount} gold."); this.BloodShards = (int)_owner.World.Game.GameDBSession.SessionGet(_owner.Toon.GameAccount.PersistentID).BloodShards; // Clear already present items // LoadFromDB is called every time World is changed, even entering a dungeon @@ -2411,7 +2411,7 @@ namespace DiIiS_NA.GameServer.GSSystem.PlayerSystem //}).ContinueWith((a) =>{ _inventoryGold = ItemGenerator.CreateGold(_owner, goldAmount); _inventoryGold.Attributes[GameAttribute.Gold] = goldAmount; - Logger.Warn($"User {this._owner.Toon.PersistentID} - inventory gold has {_inventoryGold.Attributes[GameAttribute.Gold]} gold."); + // Logger.Warn($"User {this._owner.Toon.PersistentID} - inventory gold has {_inventoryGold.Attributes[GameAttribute.Gold]} gold."); _inventoryGold.Attributes[GameAttribute.ItemStackQuantityLo] = goldAmount; // This is the attribute that makes the gold visible in gamethe gold visible in game _inventoryGold.Owner = _owner;