Skip to content

Add delivery streak bonus system - #3

Open
vincentiusdegroot wants to merge 2 commits into
mainfrom
feature/streak-bonus
Open

vincentiusdegroot wants to merge 2 commits into
mainfrom
feature/streak-bonus

Conversation

@vincentiusdegroot

Copy link
Copy Markdown
Owner

Summary

Implement a delivery streak system that rewards consecutive deliveries with a bonus.

Changes

  • Add streak counter to player object
  • Increment streak counter on each delivery completion
  • Apply 20% earnings bonus when streak reaches 3 consecutive deliveries

Details

The streak bonus encourages efficient, continuous delivery runs without interruption.

Implement a consecutive delivery streak that grants 20% bonus on the 3rd delivery.
- Add streak counter to player object
- Increment streak on each delivery
- Apply 20% bonus when streak reaches 3

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
- Reset streak when player is busted so resumed run doesn't retain bonus
- Reset cash, delivered count, and streak when starting a new game
- Show single toast message per delivery (streak bonus or regular)

Fixes: streak persists after bust, game state persists between starts, redundant toast messages
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.

1 participant