Repository navigation
Take recent headwear off fighters who aren't in body armour - #77
Conversation
/pvp start used to leave every helmet alone. Now only players still in a chestplate, leggings and boots once recent armour is off keep a helmet put on within armour.recent-seconds. Anyone else also loses whatever they put on their head in that time: a helmet, mask, head or pumpkin, since they can't put one on during the fight anyway. Older headwear stays. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (4)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review. 📝 SummarySummary by CodeRabbit
Walkthrough
ChangesPvP headwear handling
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to The change removes recently donned headwear from players without full body armour at PvP start. It is covered by tests and documentation updates, and no merge-blocking risk is evident. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The change is limited to nearby players’ recently equipped headwear. Normal removal preserves the item and respects the existing armour rules. However, a player with full storage can have their headwear forced into a world drop by another player, potentially allowing someone else to collect it. Retained concerns
Security review detailsSecurity Blast Radius
Security Findings and Attack Paths
Trust Boundaries and Controls
Hardening Proposals
Comment |
What changes
Follow-up to #76. A helmet put on just before
/pvp startstays on only for players who are still in body armour./pvp startfirst takes off any chestplate, leggings or boots put on withinarmour.recent-seconds(unchanged).MaskServicereads the helmet slot live, so taking a mask off ends the disguise at once.Nothing changes during the fight: armoured players can still take their helmet off and on, and nobody else can put headwear on.
README and the
pvp.ymlcomment are updated. There are no new config keys or messages.Tests
ArmourDonningTest.recentHeadwearComesOffOnlyForThoseOutOfBodyArmour. It covers an armoured player keeping a recent helmet, an unarmoured player losing a recent head ("headwear"), an empty head slot, and older headwear staying on.pvpStartTakesOffOnlyArmourPutOnRecentlynow expects the recent helmet to come off for an unarmoured player.ArmourDonning,PvpCommandandPvpSituation(s)have no missed lines.🤖 Generated with Claude Code