mirror of
https://github.com/IvarK/AntimatterDimensionsSourceCode.git
synced 2024-09-20 11:01:45 +00:00
Fix Doom softlock from lack of inventory space
This commit is contained in:
parent
79dca46f54
commit
aa38fc627e
|
@ -67,11 +67,18 @@ export const Pelle = {
|
|||
|
||||
Glyphs.harshAutoClean();
|
||||
if (!Glyphs.unequipAll()) {
|
||||
Modal.hideAll();
|
||||
Modal.message.show(`Dooming your Reality will unequip your Glyphs. Some of your
|
||||
Glyphs could not be unequipped due to lack of inventory space.`, 1);
|
||||
return;
|
||||
}
|
||||
Glyphs.harshAutoClean();
|
||||
if (Glyphs.freeInventorySpace < 5) {
|
||||
Modal.hideAll();
|
||||
Modal.message.show(`You must have enough empty unprotected Glyph slots for
|
||||
5 additional Glyphs in order to Doom your Reality.`, 1);
|
||||
return;
|
||||
}
|
||||
for (const type of BASIC_GLYPH_TYPES) Glyphs.addToInventory(GlyphGenerator.doomedGlyph(type));
|
||||
Glyphs.refreshActive();
|
||||
player.options.confirmations.glyphReplace = true;
|
||||
|
|
Loading…
Reference in New Issue
Block a user