Esempio n. 1
0
 public void Display()
 {
     if (delayedEffect.Type == EffectType.none)
     {
         return;
     }
     if (result == DelayedResult.resist)
     {
         target.CreatePopUpText("Resisted", ColorPallete.GetEffectColor(delayedEffect.Type));
     }
     else if (delayedEffect.Type == EffectType.stress)
     {
         target.CreatePopUpText(string.Format("{0}: {1}",
                                              effectNames[delayedEffect.Type], ((Stress)delayedEffect).StressDamage(target)), ColorPallete.GetEffectColor(EffectType.stress));
     }
     else
     {
         target.CreatePopUpText(effectNames[delayedEffect.Type], ColorPallete.GetEffectColor(delayedEffect.Type));
     }
 }