Skip to content

Tell both players what a player kill did to their reputation - #3988

Closed
erwan-joly wants to merge 1 commit into
masterfrom
claude/project-thread-d4rizw-reputation
Closed

erwan-joly wants to merge 1 commit into
masterfrom
claude/project-thread-d4rizw-reputation

Conversation

@erwan-joly

@erwan-joly erwan-joly commented Nov 29, 2026 •

Copy link
Copy Markdown
Collaborator

Requested by Erwan · project thread

Fixes #3969

What changes

  • A player kill outside an arena now sends the victim sayi ReputationReduced with the amount lost (0 when its reputation is under 50 000).
  • The killer gets sayi ReputationIncreased with the amount when it gained something.

Tests

  • PlayerRevivalHandlerTests: both lines with the transfer, the victim's 0 line and no killer line when spared.

Client check

Local-only build with every map PvP (not committed). Tester (client, level 50, reputation 60 000) on Chicken Farm Path is killed by Buddy, a second player driven by a headless bot.

master branch
only "Dignity reduced: -50" also "Reputation reduced: -2500"

The killer's side was read from the bot's packet log: on master it only gets fd; on the branch it also gets sayi ReputationIncreased with 2500.

master branch
master: no reputation line branch: Reputation reduced: -2500

https://claude.ai/code/session_014gSmkSrnR2AejWCcKdsppk


Generated by Claude Code

The victim of a player kill now sees how much reputation it lost, zero when it is under the threshold, and the killer sees what it gained when it gained something.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014gSmkSrnR2AejWCcKdsppk
@erwan-joly erwan-joly self-assigned this Nov 29, 2026
@coderabbitai

coderabbitai Bot commented Nov 29, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 32 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 19a6612 and 4a55119.

Files selected for processing: 2

  • src/NosCore.GameObject/Messaging/Handlers/Battle/PlayerRevivalHandler.cs
  • test/NosCore.GameObject.Tests/Messaging/Handlers/Battle/PlayerRevivalHandlerTests.cs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Copy link
Copy Markdown
Collaborator Author

Closing as a duplicate of #3970, which adds the same reputation lines after a player kill and also carries the client screenshots and manual test plan checks.

🤖 Generated with Claude Code

https://claude.ai/code/session_01CUfJ46iekh4rbiCyoTamtn


Generated by Claude Code

@erwan-joly erwan-joly closed this Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A player kill moves reputation without telling either player

2 participants