Skip to content

Commit

Permalink
Remove logging for power assignment when equipping items
Browse files Browse the repository at this point in the history
  • Loading branch information
Crypto137 committed Dec 4, 2024
1 parent c391ef0 commit 24f50f3
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/MHServerEmu.Games/Entities/Avatars/Avatar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1441,8 +1441,6 @@ public override void OnOtherEntityAddedToMyInventory(Entity entity, InventoryLoc
Logger.Warn($"OnOtherEntityAddedToMyInventory(): Failed to assign item power {powerProtoRef.GetName()} to avatar {this}");
return;
}

Logger.Debug($"OnOtherEntityAddedToMyInventory(): Assigned item power {powerProtoRef.GetName()} to {this}");
}
}

Expand Down Expand Up @@ -1470,10 +1468,7 @@ public override void OnOtherEntityRemovedFromMyInventory(Entity entity, Inventor

// Unassign powers granted by equipped items
if (item.GetPowerGranted(out PrototypeId powerProtoRef) && GetPower(powerProtoRef) != null)
{
UnassignPower(powerProtoRef);
Logger.Debug($"OnOtherEntityRemovedFromMyInventory(): Unassigned item power {powerProtoRef.GetName()} from {this}");
}
}

public bool ChangeCostume(PrototypeId costumeProtoRef)
Expand Down

0 comments on commit 24f50f3

Please sign in to comment.