▣
module · drop-in viewer
gear
Gear tiers for Banana 2077: Common, Uncommon, Rare, Epic and Legendary. The module covers rolled affixes, crafting components, disassembly yields, upgrade costs and the loot-tier roll. It is pure data and math. `game.rules` turns a gear spec into a real item (`R.makeGear`, `R.rol…
by·posted 18d ago
What it does
gear
Gear tiers for Banana 2077: Common, Uncommon, Rare, Epic and Legendary. The module covers rolled affixes, crafting components, disassembly yields, upgrade costs and the loot-tier roll. It is pure data and math. game.rules turns a gear spec into a real item (R.makeGear, R.rollLoot, R.disassemble, R.upgrade) and saves it in the player's profile. The character menu uses statLabel/formatStat to print item stats.
- Specs: a gear spec is
{ base = itemId, rarity = 1..5, affixes = { { stat, value } } }. - Tiers:
rarities: the name, colour, power multiplier and affix count of each tier.baseRarity: the tier of each shop item.tierPower: the stats each tier step adds, by slot.
- Rolled stats:
affixPoolsandrollAffixes: the bonus stats a piece can roll.mods: a spec's final stat bonuses.price: what a spec is worth.
- Components:
componentIds,componentNames,componentPrices: the five crafting components.salvage(tier, mult): what disassembly gives.upgradeCost(tier, mult): the components and eddies an upgrade costs.
- Loot:
rollRarity(enemyLevel, luck, minTier?): the tier of a drop.gearDropChance(luck): the chance a kill drops gear.componentDropChance: the chance a kill drops a component.
Discussion
Scoped to this part · feeds back into the world's score.
Sign in to post.sign in
No comments yet. Be the first.