Skip to content
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

Allow cooldowns to have multiple charges #255

Closed
alice-i-cecile opened this issue Oct 12, 2022 · 0 comments · Fixed by #265
Closed

Allow cooldowns to have multiple charges #255

alice-i-cecile opened this issue Oct 12, 2022 · 0 comments · Fixed by #265
Labels
enhancement New feature or request
Milestone

Comments

@alice-i-cecile
Copy link
Contributor

What problem does this solve?

In many games, cooldowns can have multiple charges. Typically, these refresh one-at-a-time, up to their cap.

When the action is used, a single charge will be consumed.

What solution would you like?

The Cooldown struct should store charges and max_charges. The common case should be implemented as if max_charges == 1.

@alice-i-cecile alice-i-cecile added the enhancement New feature or request label Oct 12, 2022
@alice-i-cecile alice-i-cecile added this to the 0.6 milestone Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant