-
Notifications
You must be signed in to change notification settings - Fork 114
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
Locked cards say "Unknown" instead of "Locked" in the library #120
Comments
Are you sure? "Unknown" is for when a card is unlocked but not seen and as far as I can tell from looking at the game's code, that's the only way it should be able to say "Unknown" instead of "Locked". |
Here is what I did and what I have observed: Then I used the relic Orrery to test if any of these cards were actually unlocked. They were not. |
You're currently unlocking every card in |
Yes, of course. What i have left is BaseMod.addCard(new Strike_Silver()); and alike. |
It looks like all the locked cards and relics are hardcoded. You can see them in I'll fix it to work with the CustomUnlockBundle, but no promises that it will make it in before today's update. |
OK, there's a |
I have already done this when I submitted this issue and it did not work. |
I believe I've found the issue with this as well as the fix. I'm a bit new to contributing on GitHub so I'm still figuring out how to issue a pull request. Anyways, I think the issue lies in basemod.patches.com.megacrit.cardcrawl.screens.compendium.CardLibraryScreen.EverythingFix.setLockStatus#Postfix Lines 81-82 look like this: ...and should be replaced with this single line: Currently, new CardGroups are being built from the Library, instead of using the ones saved to basemod.patches.com.megacrit.cardcrawl.screens.compendium.CardLibraryScreen.EverythingFix.Fields#cardGroupMap. These (new) groups are passed to com.megacrit.cardcrawl.screens.compendium.CardLibraryScreen#lockStatusHelper which does a lookup against the UnlockTracker, removes certain cards, and adds locked copies. Since the groups are then discarded and no changes are ever made to the cardGroupMap groups, those don't reflect the lock changes when they're displayed later by com.megacrit.cardcrawl.screens.compendium.CardLibraryScreen#open |
Fixed by #203. |
As title. Only happens to modded characters.
The text was updated successfully, but these errors were encountered: