Implement devotee player commands — followers, assign, dismiss, recruit #220
Labels
No labels
Blocked
Duplicate
MoSCoW/Could Have
MoSCoW/Must Have
MoSCoW/Should Have
Points/1
Points/13
Points/2
Points/21
Points/3
Points/5
Points/8
Priority/Backlog
Priority/Critical
Priority/High
Priority/Low
Priority/Medium
State/Completed
State/In progress
State/In review
State/Paused
State/Unverified
State/Verified
State/Wont Do
Type/Bug
Type/Epic
Type/Feature
Type/Legendary
Type/Task
Type/Testing
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
#203 Epic: Devotee System
aethyr/Aethyr
Reference: aethyr/Aethyr#220
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Metadata
feature/m4-devotee-player-commandsImplement devotee player commands — followers, assign, dismiss, recruit (#220)Background and Context
Players need commands to interact with the Devotee system. This issue implements four core player commands:
followersto view current devotees,assignto give a devotee a task,dismissto release a devotee, andrecruitto convert a willing NPC into a devotee.Recruitment is gated by reputation — a player must have at least Respected tier standing with the NPC's faction to recruit them. This creates a meaningful connection between the reputation system and the devotee system, rewarding players who invest in building faction relationships.
All commands follow the existing Aethyr command pattern and integrate with the command parser system.
Expected Behavior
followers: Lists all current devotees in a formatted table showing name, specialty, skill level, current assignment (or "Idle"), loyalty, and morale. Shows a summary count.assign <name> <task>: Sets the named devotee's assignment to the specified task. Validates that the devotee exists, belongs to the player, and the task is valid for their specialty. Provides confirmation message.dismiss <name>: Removes the named devotee from the player's devotee list. The NPC returns to their original location. Requires confirmation. Provides feedback message.recruit <npc>: Attempts to recruit the targeted NPC as a devotee.recruitible: trueflag).Acceptance Criteria
followerscommand displays a formatted table of all devotees with all fields.followersshows "You have no followers" when the list is empty.assign <name> <task>correctly assigns a task to a devotee.assignrejects invalid devotee names with an error message.assignrejects tasks that don't match the devotee's specialty.dismiss <name>removes the devotee and returns the NPC.dismissrejects invalid devotee names with an error message.recruit <npc>succeeds when all conditions are met.recruitfails with appropriate message when NPC is not recruitible.recruitfails with appropriate message when reputation is too low.recruitfails with appropriate message when devotee cap is reached.Subtasks
lib/aethyr/core/commands/followers.rbwith thefollowerscommand handler.lib/aethyr/core/commands/assign.rbwith theassigncommand handler.lib/aethyr/core/commands/dismiss.rbwith thedismisscommand handler.lib/aethyr/core/commands/recruit.rbwith therecruitcommand handler.tests/unit/devotee_commands.featurecovering all four commands with success cases, error cases, edge cases, and formatted output.tests/integration/for end-to-end devotee management including recruitment, assignment, and dismissal flows.bundle exec rake unit_profileand verify no performance regressions.bundle exec rake unit. If coverage is <97% then review the current unit test coverage report atbuild/tests/unit/coverage/and use it to write new Cucumber based unit tests to improve code coverage. Specifically, write Cucumber/Gherkin style unit tests that are descriptively named and specifically improve coverage on whichever file has the most uncovered lines by writing tests that will target the uncovered lines in the report. Once that is done rerunbundle exec rake unitto verify all tests pass and coverage is above >=97%. Only mark this as complete once coverage is >=97%, if not repeat this task as many times as is needed until coverage reaches >=97%.bundle exec rake(default task: unit tests with coverage) andbundle exec rake integration, fix any errors if needed ensuring both pass across entire code base, do not ignore any failure even if it seems unrelated to this commit, fix it.Definition of Done
This issue is complete when:
master, reviewed, and merged before this issue is marked done.