mirror of
https://github.com/SoDOff-Project/sodoff.git
synced 2025-10-11 16:28:50 -07:00
fix purchase: swap coins and gems
This commit is contained in:
parent
d4294130d9
commit
18584fdc2b
@ -2271,8 +2271,8 @@ public class ContentController : Controller {
|
||||
}
|
||||
|
||||
// deduct the cost of the purchase
|
||||
achievementService.AddAchievementPoints(viking, AchievementPointTypes.GameCurrency, -totalCoinCost + gemsToAdd);
|
||||
achievementService.AddAchievementPoints(viking, AchievementPointTypes.CashCurrency, -totalGemCost + coinsToAdd);
|
||||
achievementService.AddAchievementPoints(viking, AchievementPointTypes.GameCurrency, -totalCoinCost + coinsToAdd);
|
||||
achievementService.AddAchievementPoints(viking, AchievementPointTypes.CashCurrency, -totalGemCost + gemsToAdd);
|
||||
|
||||
// add items to the inventory (database)
|
||||
var addedItems = inventoryService.AddItemsToInventoryBulk(viking, inventoryItemsToAdd);
|
||||
|
Loading…
x
Reference in New Issue
Block a user