Vip宣伝発生の条件を変更
This commit is contained in:
parent
bb936ae4a3
commit
1752153ad6
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue