public static void RaiseMoral() { MoralState newMoralState = MoralState.Neutral; if (currentMorale == MoralState.Demoralized) { newMoralState = MoralState.Worse; } if (currentMorale == MoralState.Worse) { newMoralState = MoralState.Bad; } if (currentMorale == MoralState.Bad) { newMoralState = MoralState.Neutral; } if (currentMorale == MoralState.Neutral) { newMoralState = MoralState.Good; } if (currentMorale == MoralState.Good) { newMoralState = MoralState.Better; } if (currentMorale == MoralState.Better) { newMoralState = MoralState.Best; } if (currentMorale == MoralState.Best) { newMoralState = MoralState.Best; } currentMorale = newMoralState; MoralStateChanged?.Invoke(currentMorale, new EventArgs()); }
public static void SetStartValue() { currentMorale = MoralState.Neutral; MoralStateChanged?.Invoke(currentMorale, new EventArgs()); }