public void RevertTrait() { foreach (var removedBuff in BuffInfo.FindAll((buffEntry => buffEntry.SourceType == BuffSourceType.Trait))) { RemoveBuff(removedBuff); } }
public void RevertMortality() { if (GetStatusEffect(StatusType.DeathRecovery).IsApplied) { GetStatusEffect(StatusType.DeathRecovery).ResetStatus(); foreach (var removedBuff in BuffInfo.FindAll((buffEntry => buffEntry.SourceType == BuffSourceType.Mortality))) { RemoveBuff(removedBuff); } } }
public void TownReset() { foreach (var buff in BuffInfo.FindAll(info => !(info.SourceType == BuffSourceType.Quirk || info.SourceType == BuffSourceType.Trinket || info.SourceType == BuffSourceType.Trait))) { RemoveBuff(buff); } foreach (var statusEntry in StatusEffects) { statusEntry.Value.ResetStatus(); } Status = HeroStatus.Available; Heal(MaxHealth, false); if (Trait != null && Trait.Type == OverstressType.Virtue) { RevertTrait(); } }