Ng+
#1489 (closed) got me thinking and I realized our new shredder/whitelist system didn't handle NG+ terribly well.
To address this I have reviewed the way the game used to work, and moved values that were always set to default into a new object, App.Data.resetOnNGPlus
. I then stripped out any duplicates from App.Data.defaultGameStateVariables
.
This makes them two halves of a coin. If you check them both together in "polite mode" (setNonexistantProperties()
), they won't overwrite anything. autoshred()
now also concats the two and consults the combined set before deleting anything.
However, by having resetOnNGPlus
in a distinct object, I can use it in boss mode and overwrite player settings as well to create NG+.
Small detail, NG+ screen ran BC on every refresh, and it refreshes a lot. It uses a few globals to survive this, but they are not needed anywhere but that page. Rather than putting them in the whitelist, I check if they are defined on first load. Barring them being leftover from another NG+ where BC hasn't been run yet, this should make sure BC is run once while preserving original functionality. Should also make the scene faster since it doesn't need to run BC every refresh.
Merge request reports
Activity
@Pregmodder I think leaving this out is causing more problems that it solves at this point and people keep causing merge conflicts as they fix defaultGameStateVariables. Makes it hard to incorporate their changes to this mr. Let's get NG+ back online and let people continue to post fixes.
added 3 commits
-
3ee30d1c...04fb2510 - 2 commits from branch
pregmodfan:pregmod-master
- 7c9f5e26 - Merge branch 'pregmod-master' into NG+
-
3ee30d1c...04fb2510 - 2 commits from branch
added 6 commits
-
7c9f5e26...ffbc7be7 - 5 commits from branch
pregmodfan:pregmod-master
- a6cd9abe - Merge branch 'pregmod-master' of https://gitgud.io/pregmodfan/fc-pregmod into NG+
-
7c9f5e26...ffbc7be7 - 5 commits from branch
added 30 commits
-
a6cd9abe...0c70ddd9 - 29 commits from branch
pregmodfan:pregmod-master
- 4fb1c77a - Merge branch 'pregmod-master' into NG+
-
a6cd9abe...0c70ddd9 - 29 commits from branch
mentioned in commit 4e6e7c1c
mentioned in merge request !6329 (merged)