-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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 Toggle bionics/deactivate mutations causes bonus stats ignored until next turn #78090
Merged
Night-Pryanik
merged 6 commits into
CleverRaven:master
from
osuphobia:refactor_enchantment
Nov 24, 2024
Merged
Fix Toggle bionics/deactivate mutations causes bonus stats ignored until next turn #78090
Night-Pryanik
merged 6 commits into
CleverRaven:master
from
osuphobia:refactor_enchantment
Nov 24, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
github-actions
bot
added
<Bugfix>
This is a fix for a bug (or closes open issue)
Bionics
CBM (Compact Bionic Modules)
Mutations / Traits / Professions/ Hobbies
Mutations / Traits / Professions/ Hobbies
[C++]
Changes (can be) made in C++. Previously named `Code`
json-styled
JSON lint passed, label assigned by github actions
astyled
astyled PR, label is assigned by github actions
labels
Nov 23, 2024
Cataclysm-DDA/tests/npc_talk_test.cpp Lines 1141 to 1156 in 8ff5859
So |
osuphobia
changed the title
Fix Toggle bionics/deactivate mutations causes bonus stats ingnored until next turn
Fix Toggle bionics/deactivate mutations causes bonus stats ignored until next turn
Nov 23, 2024
osuphobia
force-pushed
the
refactor_enchantment
branch
from
November 23, 2024 12:46
6c6c496
to
356b58e
Compare
github-actions
bot
added
BasicBuildPassed
This PR builds correctly, label assigned by github actions
and removed
BasicBuildPassed
This PR builds correctly, label assigned by github actions
labels
Nov 23, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
astyled
astyled PR, label is assigned by github actions
BasicBuildPassed
This PR builds correctly, label assigned by github actions
Bionics
CBM (Compact Bionic Modules)
<Bugfix>
This is a fix for a bug (or closes open issue)
[C++]
Changes (can be) made in C++. Previously named `Code`
json-styled
JSON lint passed, label assigned by github actions
Mutations / Traits / Professions/ Hobbies
Mutations / Traits / Professions/ Hobbies
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Bugfixes "Toggle bionics/deactivate mutations causes bonus stats ignored until next turn"
Purpose of change
Fix #78050
Describe the solution
We no longer use
mods
in mutations after #72034, remove relevant codes.Not to immediately reset stats when toggling bionics so bonus do not get ignored.
Describe alternatives you've considered
Find a way to let mutations modify base stats like it was, but I don't know how to do it.
Testing
Works fine locally.
Additional context
Further audit is needed for enchantments and test cases.