Jump to content

Drug Price Calculation

From ElyndorSMP Wiki
Revision as of 15:37, 27 September 2026 by Admin (talk | contribs)

The General Formular

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

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])

  • N = Number of items
  • IInflation = The Inflation Factor (Stays at 1.0 for now)
  • MItemPrice = Item Price in the Shop
  • n = Number of effects
  • Li = Level of effect i (converted from NBT byte)
  • ti = Duration of effect i in ticks
  • fi = Effect multiplier (2.0 for good effects, 1.0 for others)
General Values
  • a = EFFECT_BASE_PRICE
  • b = AMPLIFIER_MULTIPLIER
  • c = DURATION_MULTIPLIER