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

Fix stamina expenditure when pulping #32043

Merged
merged 1 commit into from
Jul 3, 2019

Conversation

kevingranade
Copy link
Member

SUMMARY: None

Purpose of change

Previous code was improperly using a large and arbitrary "effectiveness" number as the stamina cost per strike, leading to character exhaustion.

Describe the solution

Derive a separate effort value based on just the brute force component of pulping activity.
Bail out of the current turn of activity if stamina goes too low.

Reproduction case

Using a high strength character with a large bashing weapon and high survival skill, bash one or more corpses.

https://cdn.discordapp.com/attachments/365907426270117888/595366806768582715/unknown.png

Thanks to @derval for reporting and researching this.

Previous code was improperly using a large and arbitrary "effectiveness" number as the stamina cost per strike, leading to character exhaustion.
@ifreund ifreund added <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Mechanics: Character / Player Character / Player mechanics labels Jul 1, 2019
@kevingranade
Copy link
Member Author

Jenkins rebuild

@ZhilkinSerg ZhilkinSerg merged commit 5adc49d into master Jul 3, 2019
@kevingranade kevingranade deleted the kevingranade-pulping-stamina-cost-fix branch July 8, 2019 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bugfix> This is a fix for a bug (or closes open issue) [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