Idle Ascent: Upgrades, Prestige and Idle Earnings Kit
README.md
inc (incrementalKit)
The one interface an idle or upgrade-shop game calls: local Inc = require("incrementalKit.inc"). Inc.setup takes the game's currencies, upgrades (cost curve, max level, effect on a stat or a generator's output per second, requirements, category, main or prestige shop), milestones, stats and prestige rules. Then Inc.earn(currency, amount, source) credits with every multiplier, Inc.buy(id, 1 | 10 | 25 | "max") buys at the exact total price, Inc.stat(name) reads a stat summed from upgrades, milestones and prestige, Inc.prestigePreview() / Inc.prestige() reset for a permanent multiplier, Inc.idleRate() / Inc.claimOffline() handle idle and offline earnings, Inc.record(name, value) keeps bests, Inc.effectChange(id) says what the next level changes in real numbers ("Shove 3 -> 4 (+33%)"), upgrades sharing exclusive = "group" are a choice with Inc.respec(group) to undo it, and Inc.on(event, fn) listens to bought, earned, prestige, milestone, unlock, offline and respec. Progress is saved per player in their own data store and stays separate for every player in a multiplayer world. Inc.ui is the screens module.