Add staff command to give completed equipment with a selected material - #32
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (9)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 SummarySummary by CodeRabbit
WalkthroughThe pull request adds a permission-configured command to grant completed equipment to a selected player. It validates command inputs, builds items without crafting delivery, and documents permission settings, item selection, and grant behaviour. ChangesStaff equipment grant
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
actor Staff
participant CommandManager
participant EquipmentGiveCommand
participant CraftingStation
participant TargetPlayer
Staff->>CommandManager: Run /ac give equipment
CommandManager->>EquipmentGiveCommand: Route command and arguments
EquipmentGiveCommand->>CraftingStation: Build completed item at requested quality
CraftingStation-->>EquipmentGiveCommand: Return completed item
EquipmentGiveCommand->>TargetPlayer: Add item to inventory
EquipmentGiveCommand->>TargetPlayer: Drop overflow at target location
Suggested reviewers: Merge Risk: ⚪ Minimal · up to The change adds a permission-gated staff command for granting completed equipment. No concrete merge-blocking risk was identified; the remaining step is the Linux CI full verify and coverage gate. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The new grant capability checks the sender’s configured permission before building or delivering equipment, and normal crafting retains its existing delivery behavior. No authorization bypass was identified in the inspected paths. Production permission integration and interrupted delivery remain unconfirmed. Retained concerns Security review detailsSecurity Blast Radius
Security Findings and Attack Paths
Trust Boundaries and Controls
Resilience and Maintainability Implications
Hardening Proposals
Comment |
Staff can use
/ac give equipment <recipe> <ingredient.id|alloy.id> [player] [quality]to grant a completed item with the chosen compatible main material. The command supports online recipients, bounded quality and permission-aware completion.give-equipment-permissiondefaults toadvancedcrafting.adminand can be reloaded.Uses the existing equipment builder for stats, sockets, appearance, tier and provenance. Secondary ingredients select the lowest configured tier, then ID. No station state, inventory consumption, XP or progression events; full inventories drop at the recipient.
Validation:
Deployment: release and routine Main PUSH follow merge. Tutorial requires a coordinated upgrade because its installed legacy TLibs is incompatible; its preparation is approved separately.