Exemple #1
0
 internal PotionEffect(SpellItemData subRecord)
 {
     effect            = (MagicEffectType)subRecord.EffectId;
     affectedAttribute = effect.ByteConvertToAttribute(subRecord.AttributeId);
     affectedSkill     = effect.ByteConvertToSkill(subRecord.SkillId);
     Duration          = subRecord.Duration;
     Magnitude         = subRecord.MagMin;
 }
Exemple #2
0
 internal SpellEffect(SpellItemData subRecord)
 {
     effect            = (MagicEffectType)subRecord.EffectId;
     affectedSkill     = effect.ByteConvertToSkill(subRecord.SkillId);
     affectedAttribute = effect.ByteConvertToAttribute(subRecord.AttributeId);
     Range             = (RangeType)subRecord.RangeType;
     area         = subRecord.Area;
     duration     = subRecord.Duration;
     minMagnitude = subRecord.MagMin;
     maxMagnitude = subRecord.MagMax;
 }