I am trying to create a program that can calculate the same cargo bonus formula for my game i'm making, but i'm having a slight problem with this formula. I should be getting 40 at the end of the calculation but i just get 4.
The programmer said this about the formula:
For example: cargo value $100 and Same cargo multiplier is 2%
If you load 1 cargo then no bonus would be applied.
If you laod ie. 5 the same cargos bonus would be applied 4 times.
So final formula is $500 (for 5 cargos) + 8% x $500 = $500 + $40
X - cargo amount
Y - cargo value
Z - same cargo multiplier