Slay the Spire

Slay the Spire

Corrupt the Spire
AvangionQ 4 Jun, 2022 @ 11:27pm
Conflict with Hubris
Mods in stacktrace:
- CorruptTheSpire (1.2.0)
- hubris (0.24.8)
Cause:
java.lang.NullPointerException
at com.megacrit.cardcrawl.relics.AbstractRelic.getPrice(AbstractRelic.java:172)
at com.megacrit.cardcrawl.shop.StoreRelic.<init>(StoreRelic.java:38)
at corruptthespire.corruptions.shop.ShopCorruption.handleRelics(ShopCorruption.java:200)
at corruptthespire.patches.shop.ShopPatch$ChangeRelicsPatch.changeRelics(ShopPatch.java:92)
at com.megacrit.cardcrawl.shop.ShopScreen.initRelics(ShopScreen.java)
at com.megacrit.cardcrawl.shop.ShopScreen.init(ShopScreen.java:220)
at com.evacipated.cardcrawl.mod.hubris.patches.BloodShopPatch$ScreenInit.init(BloodShopPatch.java:75)
at com.megacrit.cardcrawl.shop.Merchant.<init>(Merchant.java:122)
at com.megacrit.cardcrawl.shop.Merchant.<init>(Merchant.java:54)
at com.megacrit.cardcrawl.rooms.ShopRoom.onPlayerEntry(ShopRoom.java:42)
at com.megacrit.cardcrawl.dungeons.AbstractDungeon.nextRoomTransition(AbstractDungeon.java:2282)
at com.megacrit.cardcrawl.dungeons.AbstractDungeon.nextRoomTransition(AbstractDungeon.java:2119)
at com.megacrit.cardcrawl.dungeons.AbstractDungeon.updateFading(AbstractDungeon.java:2848)
at com.megacrit.cardcrawl.dungeons.AbstractDungeon.update(AbstractDungeon.java:2517)
at com.megacrit.cardcrawl.core.CardCrawlGame.update(CardCrawlGame.java:876)
at com.megacrit.cardcrawl.core.CardCrawlGame.render(CardCrawlGame.java:423)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:225)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:126)
< >
Showing 1-2 of 2 comments
modargo  [developer] 5 Jun, 2022 @ 11:27pm 
Thanks for reporting this. I took a look at the code and I don't think Hubris is the cause; while the stack trace mentions Hubris's Blood Shop code, it's actually the part of that code that handles the room being a normal shop instead. I suspect this is due to there being a relic that doesn't handle its price the same way as other relics, possibly added by some other mod.

I plan to add something that guards against this happening, though it might not catch everything that could be wrong with a relic.
AvangionQ 5 Jun, 2022 @ 11:42pm 
Hubris blood shop doesn't charge gold, it charges HP.
I wonder which relic causes the crash ... that run had so many.
< >
Showing 1-2 of 2 comments
Per page: 1530 50