Skip to content

Move weapon logic from Player to Arsenal. #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 20, 2024
Merged

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.

2 participants