コード例 #1
0
    private void ExecPlayIrregularStep()
    {
        if (this.NowIrregularStepCounter > 0)
        {
            float factor = (float)PrimaryLogic.BattleSpeed(this.NowIrregularStepPlayer) * 2.00f;
            UpdatePlayerArrow(this.NowIrregularStepPlayer, factor);
            this.NowIrregularStepCounter = this.NowIrregularStepCounter - factor * BATTLE_GAUGE_WITDH / 100.0f;
        }

        if (this.NowIrregularStepCounter <= 0.0f)
        {
            ExecNormalAttack(this.NowIrregularStepPlayer, this.NowIrregularStepTarget, SecondaryLogic.IrregularStep_Damage(this.NowIrregularStepPlayer), CriticalType.Random);
            this.NowIrregularStepPlayer  = null;
            this.NowIrregularStepTarget  = null;
            this.NowIrregularStepCounter = 0;
            this.NowIrregularStepMode    = false;
        }
    }