Hey,
this should be pretty simple but am having troubles wrapping my head around it. Basically I am working on a game that has different items that the player can be. One of the premium buys is a price reduction on the items by 5% each time. I’m currently doing this through multiplying by *0.05. The problem with what am doing is that it multiplies the already reduced value by *0.05 on each additional purchase.
this is the sample code i got so far
if (( premiumCoins >= upgradeAmount) && (perkLevel <= 49) )
{
premiumCoins = premiumCoins - upgradeAmount;
for (int i = 0; i < 5; i++)
{
itemList<em>.purchaseCost = itemList<em>.purchaseCost - (itemList_.purchaseCost * 0.05f);_</em></em>
* }*
}