diff --git a/popcorn/Assets/MyGame/Scenes/Cooking/Scripts/CookingResult.cs b/popcorn/Assets/MyGame/Scenes/Cooking/Scripts/CookingResult.cs index 2bebac21..e01706c6 100644 --- a/popcorn/Assets/MyGame/Scenes/Cooking/Scripts/CookingResult.cs +++ b/popcorn/Assets/MyGame/Scenes/Cooking/Scripts/CookingResult.cs @@ -142,8 +142,11 @@ public class CookingResult : MonoBehaviour // 獲得、遷移 MoveStock(GameDataManager.GameData.WaitAddStock); - // 確率でVip宣伝 - if (GameDataManager.GameData.ShopStock.Count >= Const.VipCustomerRewardStock) + // 獲得後、確率でVip宣伝 + var shopStock = GameDataManager.GameData.ShopStock.Count; + var tankStock = GameDataManager.GameData.StorageTanks.Sum(x => x.Stock); + var totalStock = shopStock + tankStock; + if (totalStock >= Const.VipCustomerRewardStock) { if (Random.value <= Const.VipCustomerRewardRate) { diff --git a/popcorn/Assets/MyGame/Scripts/Const.cs b/popcorn/Assets/MyGame/Scripts/Const.cs index be6a4bb3..41f05d85 100644 --- a/popcorn/Assets/MyGame/Scripts/Const.cs +++ b/popcorn/Assets/MyGame/Scripts/Const.cs @@ -22,7 +22,7 @@ public static class Const { public static readonly int[] FieldTutorial = { 5, 12, 6 }; public static readonly int[] ShoppingTutorial = { 7, 13, 8}; public static readonly int[] ManagementTutorial = { 9 }; - public static readonly float VipCustomerRewardStock = 20; // Market.ShopStockCount以下にする + public static readonly float VipCustomerRewardStock = 30; public static readonly float VipCustomerRewardRate = 0.2f; public static readonly int AutoCookAvailableLevel = 7; public static readonly int ShopCustomizeDefaultSignBoardId = 1;