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
Refactor: stop duplicating information in the character creation #50772
Merged
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
I am going to refactor newcharacter.cpp and to do that i want to remove all external usage of points_left.
hexagonrecursion
force-pushed
the
points
branch
from
August 14, 2021 14:05
25100f5
to
805c0a0
Compare
BrettDong
added
[C++]
Changes (can be) made in C++. Previously named `Code`
Character / World Generation
Issues and enhancements concerning stages of creating a character or a world
Info / User Interface
Game - player communication, menus, etc.
labels
Aug 14, 2021
hexagonrecursion
force-pushed
the
points
branch
from
August 14, 2021 17:21
dd8e7f7
to
7ee51dd
Compare
As far as I can tell there is no UI to request random single-pool or freeform characters which makes my job easier
hexagonrecursion
force-pushed
the
points
branch
from
August 16, 2021 10:42
f24dbed
to
ffe0ed0
Compare
hexagonrecursion
force-pushed
the
points
branch
from
August 16, 2021 12:57
eeb0d68
to
97edc31
Compare
hexagonrecursion
changed the title
[WIP] Refactor: stop duplicating information in the character creation
Refactor: stop duplicating information in the character creation
Aug 17, 2021
I absolutely love your approach here, this centralizes all the evaluation in a really nice way so it's easier to get a view into how things interact with each other, and also pulls code out of avatar and character, which is great. |
Master is green. I want to take the opportunity to CI this. Close and reopen. |
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`
Character / World Generation
Issues and enhancements concerning stages of creating a character or a world
Info / User Interface
Game - player communication, menus, etc.
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 "Fix all the bugs with character creation point pools forever"
Purpose of change
Fixes #50665
Currently the character creation menu tries (and sometimes fails) to keep two pieces of information in sync: the point pools and the choices the player made. This leads to bugs like #50665.
Describe the solution
I propose to recompute the point pools where needed instead of keeping them in a variable and updating them in-place. This should be much less code and remove many opportunities for bugs.
Testing
Opened the character creation menu and played around with it a but. Observations so far: