Skip to content

Conversation

@karnkaul
Copy link
Member

@karnkaul karnkaul commented Mar 20, 2024

  • Add remaining round count in Weapon, defaulted to -1 (infinite).
  • Add main (permanent) and special (temporary) weapons to Arsenal.
  • Auto-switch back to main weapon after special has no more rounds and is idle.

This sets up the foundation for weapon-awarding powerups, which can now simply set a special weapon with limited rounds upon the player collecting the corresponding powerup.

- Add remaining round count in `Weapon`, defaulted to -1 (infinite).
- Add main (permanent) and special (temporary) weapons to `Arsenal`.
- Auto-switch back to main weapon after special has no more rounds and is idle.
@karnkaul karnkaul marked this pull request as ready for review March 20, 2024 06:23
@karnkaul karnkaul requested a review from swagween March 20, 2024 06:23
Copy link
Contributor

@swagween swagween left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all looks good!

@karnkaul karnkaul merged commit 73e7024 into main Mar 20, 2024
@karnkaul karnkaul deleted the karnage/arsenal branch March 20, 2024 12:31
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.

3 participants