game-math

Provide idle game economy formulas for exponential cost scaling and BigInt calculations.

Updated Mar 3, 2026
One-click install
npx skills add https://github.com/lvmp/tribal-idle --skill game-math
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: game-math
Source: https://github.com/lvmp/tribal-idle/tree/main/.agent/skills/game_math
Command: npx skills add https://github.com/lvmp/tribal-idle --skill game-math

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the complex mathematical and economic balancing required for idle games, ensuring a satisfying player progression curve and preventing common pitfalls like number overflow or unfair scaling.

Core Features & Use Cases

  • Progression Curves: Defines exponential cost scaling for in-game items and upgrades.
  • Economy Balancing: Provides formulas for production per second (G/s) and manages large numbers using BigInt or specialized formatting.
  • Offline Earnings & Prestige: Implements systems for calculating player gains while offline and managing soft-reset mechanics (prestige).
  • Specific Game Mechanics: Includes logic for survival costs (e.g., wood for fire) and crisis states.

Quick Start

Use the game-math skill to calculate the cost of level 50 for the 'Mining' zone with a base cost of 10 and a multiplier of 1.15.

Frequently Asked Questions about game-math

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I balance idle game progression curves using exponential cost scaling?

Idle game progression curves are balanced using exponential cost scaling formulas that define how in-game item and upgrade costs increase. This ensures a satisfying player progression curve by applying multipliers to base costs as levels increase.

How do you handle large numbers and number overflow in idle game economies?

Large numbers in idle game economies are managed using BigInt or specialized number formatting. This prevents number overflow and unfair scaling when production per second (G/s) calculations reach extremely high values during extended gameplay.

What is the best way to calculate offline earnings and prestige gains for idle games?

Offline earnings and prestige gains are calculated using dedicated mathematical formulas for soft-reset mechanics. This system tracks player production rates while away and determines prestige rewards to maintain balanced long-term progression.

How do I implement survival costs and crisis states in idle game balancing?

Survival costs and crisis states are implemented through specific game mechanic logic that factors resource depletion, such as wood for fire, into the core economy balancing. This ensures engaging player experiences by introducing dynamic resource management challenges.

What are common anti-patterns to avoid when balancing idle game economies?

Common idle game economy anti-patterns include unfair scaling, unmanaged number overflow, and poorly tuned progression curves. Following established best practices for idle game development prevents these pitfalls and ensures balanced mathematical formulas.