Skip to content

Add Quest Participant Limit Feature#225

Open
ZuLu0890 wants to merge 1 commit into
MindFlowInteractive:mainfrom
ZuLu0890:feature/quest-participant-limit
Open

Add Quest Participant Limit Feature#225
ZuLu0890 wants to merge 1 commit into
MindFlowInteractive:mainfrom
ZuLu0890:feature/quest-participant-limit

Conversation

@ZuLu0890
Copy link
Copy Markdown

Implements controlled participation mechanics for limited-access quests.

Changes:

  • Add max_participants field to QuestChain struct (Optional)
  • Add ChainParticipants DataKey to track current participant count
  • Update create_chain to accept max_participants parameter
  • Add participant limit check in start_chain (panics if limit reached)
  • Increment participant count when player joins chain
  • Decrement participant count when player resets chain
  • Add get_chain_participants view function

Acceptance Criteria Met:
✓ Quest creator can define maximum participants
✓ Joining reverts once limit is reached
✓ Participant count remains accurate under all conditions

Generated with Devin
closes #209

Implements controlled participation mechanics for limited-access quests.

Changes:
- Add max_participants field to QuestChain struct (Optional<u32>)
- Add ChainParticipants DataKey to track current participant count
- Update create_chain to accept max_participants parameter
- Add participant limit check in start_chain (panics if limit reached)
- Increment participant count when player joins chain
- Decrement participant count when player resets chain
- Add get_chain_participants view function

Acceptance Criteria Met:
✓ Quest creator can define maximum participants
✓ Joining reverts once limit is reached
✓ Participant count remains accurate under all conditions

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 26, 2026

@ZuLu0890 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

Add Quest Participant Limit

1 participant