Drug Price Calculation

Revision as of 15:35, 27 September 2026 by Admin (talk | contribs) (Created page with "=== The General Formular === <math display="block">P_{total}=N\times I_{Inflation}\times \left( M_{ItemPrice}+\sum_{i=1}^{n}\left[(a+b\times e^{L_{i}}+\frac{t_{i}}{20}\cdot c)\cdot f_{i}\right] \right)</math> * N = Number of items * I_{Inflation} = The Inflation Factor (Stays at 1.0 for now) * M_{ItemPrice} = Item Price in the Shop * n = Number of effects * L_{i} = Level of effect i (converted from NBT byte) * t_{i} = Duration of effect i in ticks * f_{i} = Effect mult...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The General Formular

Ptotal=N×IInflation×(MItemPrice+∑i=1n[(a+b×eLi+ti20⋅c)⋅fi])

  • N = Number of items
  • I_{Inflation} = The Inflation Factor (Stays at 1.0 for now)
  • M_{ItemPrice} = Item Price in the Shop
  • n = Number of effects
  • L_{i} = Level of effect i (converted from NBT byte)
  • t_{i} = Duration of effect i in ticks
  • f_{i} = Effect multiplier (2.0 for good effects, 1.0 for others)
General Values
  • a = EFFECT_BASE_PRICE
  • b = AMPLIFIER_MULTIPLIER
  • c = DURATION_MULTIPLIER

After inserting the general values it may look like this (retrieved on November 26, 2025):

Ptotal=N×IInflation×(MItemPrice+∑i=1n[(500+10eLi+ti20⋅1)⋅fi])