ModernUO/Projects
Jascen 6b411944b3
fix: Skip karma message when karma change is zero (#2710)
## Summary
`SendKarmaMessage` maps the karma change to a message, and its fallback arm is "You have lost a little karma." (1019063). A change of `0` lands in that arm, so the player is told they lost karma when nothing changed.

How to reproduce on a clean build: kill a creature with 0 karma, such as a grey wolf. The kill awards 0 karma and the player sees "You have lost a little karma."

This change returns early when the change is `0`, which matches how `AwardFame` already handles fame: it sends nothing when fame doesn't change.

## Test plan
- [x] `dotnet build` succeeds
- [x] Kill a 0-karma creature: no karma message
- [x] Kill a negative-karma creature: "gained karma" message is unchanged
2026-10-17 13:55:17 -07:00
..
Application fix: Bumps dependencies. (#2531) 2026-07-14 15:17:55 -07:00
BuildTool feat: Bumps dependencies. Introduces Serialization Generator v3 (#2584) 2026-08-22 15:48:53 -07:00
Logger fix: Bumps dependencies. (#2531) 2026-07-14 15:17:55 -07:00
Server fix: Updates dependencies (#2714) 2026-10-17 13:54:25 -07:00
Server.Tests fix: Updates dependencies (#2714) 2026-10-17 13:54:25 -07:00
UOContent fix: Skip karma message when karma change is zero (#2710) 2026-10-17 13:55:17 -07:00
UOContent.Tests fix: Updates dependencies (#2714) 2026-10-17 13:54:25 -07:00