Custom Mods are not added to the lists at the correct time.
From the function "AbstractDungeon.generateRoomTypes", with custom mods "Shiny" and "customChronoMod" selected...
ChronoCustoms.logger.info(String.join(",", CardCrawlGame.trial.dailyModIDs()));
outputs "Shiny"
ChronoCustoms.logger.info(String.join(",", AbstractPlayer.customMods));
outputs "Shiny"
for (AbstractDailyMod mod : ModHelper.enabledMods) { ChronoCustoms.logger.info(mod.modID); }
outputs "Shiny"
but....
for (CustomMod cmod : (ArrayList<CustomMod>)ReflectionHacks.getPrivate(CardCrawlGame.mainMenuScreen.customModeScreen,CustomModeScreen.class,"modList")) { if (cmod.selected) { ChronoCustoms.logger.info(cmod.ID) } }
outputs "Shiny" and "customChronoMod"
Expected: All four should output "Shiny" and "customChronoMod"
To be clear here, the values
CardCrawlGame.trial
AbstractPlayer.customMods
ModHelper.enabledMods
Do not contain any custom mods selected on the screen CustomModeScreen when the embark button is pressed, but they should.