タンクの容量を定数化50->20に変更

This commit is contained in:
kimura 2021-11-04 17:21:26 +09:00
parent 6c24cb3986
commit c5f397fbec
3 changed files with 3 additions and 2 deletions

View File

@ -90,7 +90,7 @@ public class ProductManagement : MonoBehaviour
Action<int> purchaseAction = amount =>
{
// タンク追加
gameData.StorageTanks.Add(new StorageTank() {Capacity = 50});
gameData.StorageTanks.Add(new StorageTank() {Capacity = Const.TankCapacity});
tankView.SetData(gameData.StorageTanks[tankView.TankNumber - 1]);
tankView.SetState(TankState.Unlock);
CoinManager.Instance.SubCoin(shopData.price);

View File

@ -10,6 +10,7 @@ public static class Const {
public static readonly int DefaultMachineLevel = 1;
public static readonly int DefaultRecipeId = 1;
public static readonly int DefaultPanId = 1;
public static readonly int TankCapacity = 20;
public static readonly int SpecialShopLevel = 9999;
public static readonly int SpecialCategory = 9999;
public static readonly int NotSetMaterialId = 0;

View File

@ -311,7 +311,7 @@ public sealed class GameData {
{
StorageTanks.Add(new StorageTank
{
Capacity = 50,
Capacity = Const.TankCapacity,
FlavorId = -1,
}
);