Пример #1
0
    public void Stun(int turns)
    {
        FighterClass.statusInfo stunStatus = new FighterClass.statusInfo();
        stunStatus.status        = FighterClass.statusEffects.Stunned;
        stunStatus.trigger       = FighterClass.statusTrigger.TurnEnd;
        stunStatus.timeRemaining = turns;

        characterStatus.Add(stunStatus);
        Paralyzed = true;
    }
Пример #2
0
    public void LightWeight(int turns)
    {
        FighterClass.statusInfo pushStatus = new FighterClass.statusInfo();
        pushStatus.status        = FighterClass.statusEffects.Pushable;
        pushStatus.trigger       = FighterClass.statusTrigger.TurnEnd;
        pushStatus.timeRemaining = turns;

        characterStatus.Add(pushStatus);
        Pushable = true;
    }
Пример #3
0
    public void Defend(int intensity, int turns)
    {
        FighterClass.statusInfo defenseStatus = new FighterClass.statusInfo();
        defenseStatus.status        = FighterClass.statusEffects.Defending;
        defenseStatus.intensity     = intensity;
        defenseStatus.trigger       = FighterClass.statusTrigger.TurnStart;
        defenseStatus.timeRemaining = turns;

        characterStatus.Add(defenseStatus);
        Defense += intensity;
    }