Loot.module
This package holds more than this page lists. See all of its files in its world.
README.md
Loot
Loot and gear for the action RPG, glued from published kits. inventoryKit owns the bag, the paper-doll equipment screen (Tab or I), items on the ground (the first player to walk over one gets it) and chests. gearStatsKit rolls stat gear in five rarities (common to legendary) and applies the stats of what a player wears to Clash combat. This module decides what drops where: gold from every monster, rolled gear about half the time, two pieces and potions from a boss, and dungeon chests that add a rolled piece on top of their loot table, better the deeper the dungeon (crypt, forest ruin, code vault). Worn gear shows on Ren (game.cast3d gear models, by rarity) and sets his fighting style (sword and shield, greatsword, twin daggers, staff, spear).
Called by game.arpg.World (Loot.start) and game.arpg.Dungeons (Loot.placeChests).
API: start(opts), refreshLook(), monsterDrop(kind, pos), placeChests(id, level), gold(), TIER.