mirror of
https://github.com/SoDOff-Project/sodoff.git
synced 2025-10-11 16:28:50 -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;
|
||||
}
|
||||
|
||||
private CommonInventoryResponse PurchaseItemsImpl(Viking viking, Dictionary<int, int> itemsToPurchase, bool mysteryBox) {
|
||||
private CommonInventoryResponse PurchaseItemsImpl(Viking viking, Dictionary<int, int> itemsToPurchase, bool addAsMysteryBox) {
|
||||
// Viking information
|
||||
UserGameCurrency currency = achievementService.GetUserCurrency(viking);
|
||||
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;
|
||||
|
||||
// Resolve items to purchase
|
||||
if (mysteryBox) {
|
||||
if (addAsMysteryBox) {
|
||||
// add mystery box to inventory
|
||||
inventoryItemsToAdd.TryAdd(i.Key, 0);
|
||||
inventoryItemsToAdd[i.Key] += i.Value;
|
||||
|
Loading…
x
Reference in New Issue
Block a user