Beispiel #1
0
 private void PostActionInfliction(ref List <Status> StatusList, ref int Health)
 {
     if (StatusHandler.Check(ref StatusList, StatusType.Dying))
     {
         Health -= Mathf.Max(1, (int)(Health * GameController_.HealthModifier));
     }
     else if (StatusHandler.Check(ref StatusList, StatusType.Regenerate))
     {
         Health += Mathf.Max(1, (int)(Health * GameController_.HealthModifier));
     }
 }
Beispiel #2
0
    private void AddModeUp(ref int CurrentModeUp, ref List <Status> StatusList, int TotalDamage)
    {
        float ModeMultiplier = 1;

        if (StatusHandler.Check(ref StatusList, StatusType.DefenceUp))
        {
            ModeMultiplier += GameController_.ModeModifier;
        }
        else if (StatusHandler.Check(ref StatusList, StatusType.DefenceDown))
        {
            ModeMultiplier -= GameController_.ModeModifier;
        }
        CurrentModeUp += (int)(TotalDamage * ModeMultiplier);
    }