Buglio / MUD.js

Multi-user dungeon written with socket.io and nodejs
2 stars 0 forks source link

Item Rarity #26

Open probably-not-porter opened 1 year ago

probably-not-porter commented 1 year ago

We should have a rarity system for items, scaled by integers. 1-5 is probably a reasonable range, with 1 being common and 5 being legendary, possibly one of a kind. common -> uncommon -> rare -> ultra rare -> legendary

These could be accompanying worldgen params that control the amount of each that exists.

SPAWNRATE_1 = 100 (per world)
...
SPAWNRATE_5= 1 (per world)
probably-not-porter commented 1 year ago

0 should be for a one of a kind item that is instanced, like a quest item. There's only one, but each player can acquire the same one.