LethalLib icon indicating copy to clipboard operation
LethalLib copied to clipboard

Items: Validate that `Item.minValue` is never higher than `Item.maxValue`

Open Hamunii opened this issue 6 months ago • 0 comments

If Item.minValue is greater than Item.maxValue in System.Random.Next, it will throw.

This breaks some things in the game, like Terminal.PostProcess when scanning for items, and the item is scrap and outside of the ship.

Hamunii avatar Aug 09 '24 15:08 Hamunii