public void RemoveModifier(FleetVitalModifier fvm) { _modifiers.Remove(fvm); LogManager.getInstance.AddEntry("<i><color=yellow>" + _name + "</color></i> has lost a modifier: [" + fvm.value + " " + FleetVital.Format(fvm.type) + " due to " + fvm.reason + ".]"); OnModifierRemoved?.Invoke(fvm); }
public void AddModifier(FleetVitalModifier fvm) { _modifiers.Add(fvm); LogManager.getInstance.AddEntry("<i><color=yellow>" + _name + "</color></i> has gained a modifier: [" + fvm.value + " " + FleetVital.Format(fvm.type) + " due to " + fvm.reason + " for " + fvm.duration + (fvm.isInfinite ? "∞" : " days") + ".]"); OnModifierAdded?.Invoke(fvm); }
void OnModifierRemoved(FleetVitalModifier fvm) { GetVital(fvm.type).RemoveModifier(fvm); UpdateVitals(); }
void OnModifierAdded(FleetVitalModifier fvm) { GetVital(fvm.type).AddModifier(fvm); UpdateVitals(); }
public void RemoveModifier(FleetVitalModifier modifier) { _modifiers.Remove(modifier); UpdateModifiers(); }
public void AddModifier(FleetVitalModifier modifier) { _modifiers.Add(modifier); UpdateModifiers(); }