レシピごとに材料数を指定できるようにデータ構造変更(コーンの数のみ)/ データ更新
This commit is contained in:
parent
67486af404
commit
acf553ec62
|
|
@ -1 +1 @@
|
|||
fCqn3xSyJAbOiUdLXsQdrJ6xHuV+b97Wp3UnP5NejTyX6wIQzkAz64YCYTdBIIJc
|
||||
pxNBoi0TJSeVPHwbokadqKmkQW/Q4Chg7bmNTOPNvMf89Yjm2hJJmWEUVeLC58Oq
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -243,6 +243,13 @@ public sealed class ProductData
|
|||
public int material1Id;
|
||||
public int material2Id;
|
||||
public int material3Id;
|
||||
public int material1Count;
|
||||
public int rarity1Price;
|
||||
public int rarity2Price;
|
||||
public int rarity3Price;
|
||||
public int rarity4Price;
|
||||
public int rarity5Price;
|
||||
public int rarity6Price;
|
||||
// public int cookingType;
|
||||
public string prefabName;
|
||||
private List<(int id, int amount)> materialList;
|
||||
|
|
@ -271,6 +278,7 @@ public sealed class ProductData
|
|||
material1Id = productData.material1Id;
|
||||
material2Id = productData.material2Id;
|
||||
material3Id = productData.material3Id;
|
||||
material1Count = productData.material1Count;
|
||||
prefabName = productData.prefabName;
|
||||
ChangeAmount(value);
|
||||
}
|
||||
|
|
@ -279,9 +287,9 @@ public sealed class ProductData
|
|||
{
|
||||
materialList = new List<(int id, int amount)>
|
||||
{
|
||||
(material1Id,15 * volume * value),
|
||||
(material2Id,1 * value),
|
||||
(material3Id,1 * value),
|
||||
(material1Id, material1Count * value),
|
||||
(material2Id, 1 * value),
|
||||
(material3Id, 1 * value),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue