Beispiel #1
0
        private void SetTable(ShotResult sr, AttackType at)
        {
            float       count = 0f;
            float       mod;
            CombatTable table;

            if (at.HasFlag(AttackType.Yellow))
            {
                foreach (AbilWrapper abil in GetDamagingAbilities())
                {
                    if (!abil.ability.Validated)
                    {
                        continue;
                    }
                    table  = abil.ability.RWAtkTable;
                    mod    = GetTableFromSwingResult(sr, table);
                    count += abil.numActivates * abil.ability.AvgTargets * abil.ability.SwingsPerActivate * mod;
                }
            }
            if (at.HasFlag(AttackType.White))
            {
                table  = WhiteAtks.RWAtkTable;
                mod    = GetTableFromSwingResult(sr, table);
                count += WhiteAtks.RwActivates * mod;
            }

            _atkOverDurs[(int)sr, (int)at] = count;
        }