BaseMod icon indicating copy to clipboard operation
BaseMod copied to clipboard

Custom Mods are not added to the lists at the correct time.

Open Tempus opened this issue 6 years ago • 1 comments

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"

Tempus avatar Mar 15 '19 20:03 Tempus

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.

Tempus avatar Mar 15 '19 20:03 Tempus