mirror of
https://github.com/SoDOff-Project/sodoff.git
synced 2025-10-12 00:38:48 -07:00
purchase: rename mysteryBox to addAsMysteryBox
This commit is contained in:
parent
18584fdc2b
commit
c8b4f94005
@ -2195,7 +2195,7 @@ public class ContentController : Controller {
|
|||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
private CommonInventoryResponse PurchaseItemsImpl(Viking viking, Dictionary<int, int> itemsToPurchase, bool mysteryBox) {
|
private CommonInventoryResponse PurchaseItemsImpl(Viking viking, Dictionary<int, int> itemsToPurchase, bool addAsMysteryBox) {
|
||||||
// Viking information
|
// Viking information
|
||||||
UserGameCurrency currency = achievementService.GetUserCurrency(viking);
|
UserGameCurrency currency = achievementService.GetUserCurrency(viking);
|
||||||
Gender gender = XmlUtil.DeserializeXml<AvatarData>(viking.AvatarSerialized).GenderType;
|
Gender gender = XmlUtil.DeserializeXml<AvatarData>(viking.AvatarSerialized).GenderType;
|
||||||
@ -2212,7 +2212,7 @@ public class ContentController : Controller {
|
|||||||
totalGemCost += (int)Math.Round(item.FinalDiscoutModifier * item.CashCost) * i.Value;
|
totalGemCost += (int)Math.Round(item.FinalDiscoutModifier * item.CashCost) * i.Value;
|
||||||
|
|
||||||
// Resolve items to purchase
|
// Resolve items to purchase
|
||||||
if (mysteryBox) {
|
if (addAsMysteryBox) {
|
||||||
// add mystery box to inventory
|
// add mystery box to inventory
|
||||||
inventoryItemsToAdd.TryAdd(i.Key, 0);
|
inventoryItemsToAdd.TryAdd(i.Key, 0);
|
||||||
inventoryItemsToAdd[i.Key] += i.Value;
|
inventoryItemsToAdd[i.Key] += i.Value;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user