public bool UpdateEntry(eSymptom symp) { foreach (SymptomChangeStatus scs in PotionEffects) { if (scs.Symptom.symptom == symp) { if (scs.IsRevealled) { return(false); } else { scs.IsRevealled = true; return(true); } } } return(false); }
public void ResetPatient() { // Randomly generate a symptom symptoms.Clear(); eSymptom randSymptom = (eSymptom)Helpers.RandomIntExceptOne(0, numberOfSymptomsPossible, (int)lastRandomSymptom); symptoms.Add(randSymptom); lastRandomSymptom = randSymptom; string msg = "Patient with symptoms: "; foreach (eSymptom symp in symptoms) { msg += $"{symp.ToString()}, "; } Debug.Log(msg); // Send event to UI OnNewPatient?.Invoke(symptoms); }
public SymptomChange(eSymptom symptom, int change) { this.symptom = symptom; this.change = change; }