Log inGet started
World

Banana 2077

Branchmain
Branchesmain
Commit49a1306fab

README.md

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:
    • affixPools and rollAffixes: 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.