Example #1
0
        protected virtual void AddSecondaryStat(SecondaryStatFlag type, int nValue, int tValue)
        {
            var entry = new SecondaryStatEntry()
            {
                nValue = nValue,
                rValue = nBuffID,
                tValue = tValue,
            };

            Stat.Add(type, entry);
        }
Example #2
0
        public override void Generate(double tDurationModifier = 1.0)
        {
            StartTime = DateTime.Now;

            if (StatType == SecondaryStatFlag.Undead)
            {
                Stat.Add(StatType, new TwoStateSecondaryStatEntry(true));
            }
            else
            {
                var entry = new SecondaryStatEntry()
                {
                    nValue = nOption,
                    rValue = nBuffID | (nSLV << 16),
                    tValue = tDuration,
                };

                Stat.Add(StatType, entry);
            }
        }