I currently working on an RPG game and I'm looking for are formula for creating/generating a min-max weapon damage for an item.
Why in Diablo for example, when a weapon is dropped from an enemy, the weapon damage is 24-72 (just as an example)? it seems that each time the item is dropped those values are randomly generated and changed. So the same weapon could drop twice but his min-max weapon damage could be different.
Is there a math formula that calculates those min-max values when the engine creates the item? what's the legality of that formula? like ItemLevel
* 2 or something.
I couldn't find on the internet anyone who talks about how those min-max values are generated in video games.
Does anyone have an idea?