Example #1
0
 public void RevertTrait()
 {
     foreach (var removedBuff in BuffInfo.FindAll((buffEntry => buffEntry.SourceType == BuffSourceType.Trait)))
     {
         RemoveBuff(removedBuff);
     }
 }
Example #2
0
 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);
         }
     }
 }
Example #3
0
    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();
        }
    }