More tuning

This commit is contained in:
Daniel Tyomin
2024-08-19 23:07:47 +02:00
parent 83fb2f186b
commit 475785c303
8 changed files with 2190 additions and 52 deletions

View File

@@ -13,14 +13,13 @@ public class LevelObjective : ScriptableObject
{
public ProductType Type;
public int Quantity;
[Range(0, 100)]
public int MaxDefectivePercentage;
}
public List<ProductQuota> Quotas;
public float TimeLimit;
[Range(0, 100)]
public int MaxDefectivePercentage;
[TextArea]
public string LevelMessage;

View File

@@ -169,7 +169,7 @@ public class Scoreboard: MonoBehaviour
Debug.Log($"{quota.Type.name}: {TotalCount(quota.Type)}/{quota.Quantity}");
if (CurrentObjective.MaxDefectivePercentage < DefectPercentage(quota.Type))
if (quota.MaxDefectivePercentage < DefectPercentage(quota.Type))
{
success = false;
Debug.LogError($"Too many broken {quota.Type.name}");