Deepdelve: Action RPG Kit with Click-to-Move, Loot and Generated Dungeons
README.md
arpgKit.loot
What falls out of a monster. Four loot tiers that get better deeper in: shallow (rooms near the start), middle, deep and vault (the boss room). Each tier sets the chance of gold (and how much), of a potion (health or mana), and of a piece of gear, which gearStatsKit rolls from the tier's drop table (tier1..tier4) at a higher item level for deeper tiers. tierForRoom(room, rooms) picks the tier, roll(tier, level, seed, rolls?, bonus?) returns the kill's drops (same seed, same drops), measure(tier, level, n?) reports gold, potions and gear per kill and the rarity spread, and define(raw) adds a tier. ArpgGame calls it when a monster dies and drops the result as inventoryKit items.