Fix an issue where it would erroneously tell player they had no inventory space

- Link to isue on discord: https://canary.discord.com/channels/351476683016241162/1136692798167449672
- With one inventory slot, the `hasSpace` check would attempt to check if `1 > 1`, which is false -- meaning the reality modal would show the player that they had no space in their inventory.
This commit is contained in:
Jace Royer 2023-08-03 11:52:21 -05:00 committed by GitHub
parent 772ab98ab1
commit bcf3448a9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -91,7 +91,7 @@ export default {
this.hasFilter = EffarigUnlock.glyphFilter.isUnlocked;
this.level = gainedGlyphLevel().actualLevel;
this.simRealities = 1 + simulatedRealityCount(false);
this.hasSpace = GameCache.glyphInventorySpace.value > this.simRealities;
this.hasSpace = GameCache.glyphInventorySpace.value >= this.simRealities;
const simRMGained = MachineHandler.gainedRealityMachines.times(this.simRealities);
this.realityMachines.copyFrom(simRMGained.clampMax(MachineHandler.distanceToRMCap));
this.shardsGained = Effarig.shardsGained * (simulatedRealityCount(false) + 1);