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