mirror of
https://github.com/IvarK/AntimatterDimensionsSourceCode.git
synced 2024-09-20 11:01:45 +00:00
Fix refine-then-sacrifice attepting to refine locked resources
This commit is contained in:
parent
469b3ad608
commit
85fc04fd29
|
@ -83,6 +83,7 @@ export const GlyphSacrificeHandler = {
|
|||
glyphRefinementGain(glyph) {
|
||||
if (!Ra.unlocks.unlockGlyphAlchemy.canBeApplied || !generatedTypes.includes(glyph.type)) return 0;
|
||||
const resource = this.glyphAlchemyResource(glyph);
|
||||
if (!resource.isUnlocked) return 0;
|
||||
const glyphActualValue = this.glyphRawRefinementGain(glyph);
|
||||
if (resource.cap === 0) return glyphActualValue;
|
||||
const amountUntilCap = this.glyphEffectiveCap(glyph) - resource.amount;
|
||||
|
|
Loading…
Reference in New Issue
Block a user