mirror of
https://github.com/IvarK/AntimatterDimensionsSourceCode.git
synced 2024-09-20 11:01:45 +00:00
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:
parent
772ab98ab1
commit
bcf3448a9f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user