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

Consolidate some stamina calculations #40476

Merged
merged 1 commit into from
May 16, 2020

Conversation

CodeBandit
Copy link
Contributor

Summary

SUMMARY: none

Purpose of change

To consolidate the usage of same-calculation for stamina cost in 1 method instead of 3 as part of streamlining stamina costs. Also makes it easier to maintain assuming changes are needed in the future.
#40453
#39987

Describe the solution

Make a method, put the calculations in there, and use the value in smash, throw, and melee attacks.

Testing

Hop into the game and test smash, throw, and melee stamina cost to make sure nothing is inadvertently broken.

@curstwist curstwist added [C++] Changes (can be) made in C++. Previously named `Code` Mechanics: Character / Player Character / Player mechanics labels May 12, 2020
@kevingranade kevingranade merged commit 8b4672c into CleverRaven:master May 16, 2020
@CodeBandit CodeBandit deleted the Consolidated-Stamina branch May 17, 2020 03:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C++] Changes (can be) made in C++. Previously named `Code` Mechanics: Character / Player Character / Player mechanics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants