Jump to content

Drug Price Calculation: Difference between revisions

From ElyndorSMP Wiki
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
<blockquote>After inserting the general values it may look like this (retrieved on November 26, 2025):</blockquote><math display="block">P_{total}=N\times I_{Inflation}\times \left( M_{ItemPrice}+\sum_{i=1}^{n}\left[(500+10e^{L_{i}}+\frac{t_{i}}{20}\cdot 1)\cdot f_{i}\right] \right)</math>
<blockquote>After inserting the general values it may look like this (retrieved on November 26, 2025):</blockquote><math display="block">P_{total}=N\times I_{Inflation}\times \left( M_{ItemPrice}+\sum_{i=1}^{n}\left[(500+10e^{L_{i}}+\frac{t_{i}}{20}\cdot 1)\cdot f_{i}\right] \right)</math>
* <math>N</math> = Number of items
* <math>N</math> = Number of items
* I_{Inflation} = The Inflation Factor (Stays at 1.0 for now)
* <math>I_{Inflation}</math> = The Inflation Factor (Stays at 1.0 for now)
* M_{ItemPrice} = Item Price in the Shop
* <math>M_{ItemPrice}</math> = Item Price in the Shop
* n = Number of effects
* <math>n</math> = Number of effects
* L_{i} = Level of effect i (converted from NBT byte)
* <math>L_{i}</math> = Level of effect i (converted from NBT byte)
* t_{i} = Duration of effect i in ticks
* <math>t_{i}</math> = Duration of effect i in ticks
* f_{i} = Effect multiplier (2.0 for good effects, 1.0 for others)
* <math>f_{i}</math> = Effect multiplier (2.0 for good effects, 1.0 for others)


====== General Values ======
====== General Values ======
Line 16: Line 16:
* b = <code>AMPLIFIER_MULTIPLIER</code>
* b = <code>AMPLIFIER_MULTIPLIER</code>
* c = <code>DURATION_MULTIPLIER</code>
* c = <code>DURATION_MULTIPLIER</code>
[[Category:Items]]
[[Category:Drugs]]

Latest revision as of 15:39, 27 September 2026

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