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

Freeze stats #1596

Merged
3 commits merged into from
Jul 28, 2022
Merged

Freeze stats #1596

3 commits merged into from
Jul 28, 2022

Conversation

Birdulon
Copy link
Member

@Birdulon Birdulon commented Jul 28, 2022

Description

Adds lock function to SetStatsCommand. This is similar to "freeze value" in Cheat Engine, it will prevent Avatar::recalcStats from changing that fightprop for the duration of the session which for many fightprops will effectively lock them at that value. Note that some fightprops are still changed outside of Avatar::recalcStats (e.g. current hp) and this will not interfere with that, however they will reset to the locked value whenever Avatar::recalcStats is called.

This is deliberately transient (limited to the session) as it seems like a minefield for false bug reports from people forgetting previous usage of this function.

image

Issues fixed by this PR

#91, #356, #717, maybe #912

Type of changes

  • Bug fix
  • New feature
  • Enhancement
  • Documentation

Checklist:

  • My code follows the style guidelines of this project
  • My pull request is unique and no other pull requests have been opened for these changes
  • I have read the Contributing note and Code of conduct
  • I am responsible for any copyright issues with my code if it occurs in the future.

@ghost ghost merged commit 0d87ac6 into Grasscutters:development Jul 28, 2022
@Birdulon Birdulon deleted the freeze_stats branch July 28, 2022 11:30
This pull request was closed.
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.

None yet

1 participant