X-Prison 2025.4.0.1
13th August 2025
- New: Enchantment costs can now be defined using mathematical expressions via exp4j.
- Supports variables:
- baseCost — the enchantment’s initial cost
- level — the target enchantment level
- Example: "baseCost * pow(1.05, level)" for exponential scaling.
- Backward Compatible: Old numeric increaseCostBy values still work with the original linear scaling logic.
- Performance: Expressions are compiled once on load for minimal runtime overhead.
Example — Old Format (linear scaling)
Code (Text):
"increaseCostBy": 250
Calculates as:
Code (Text):
baseCost + (level * 250)
Example — New Format (formula-based scaling)
Code (Text):
"increaseCostBy": "baseCost * pow(1.05, level)"
Calculates as:
Code (Text):
initialCost × (1.05 ^ (level))