示例#1
0
 public override void Deserialize(ICustomDataReader reader)
 {
     this.ModificationType = reader.ReadByte();
     this.SpellId          = reader.ReadVarShort();
     this.Value            = new CharacterBaseCharacteristic();
     this.Value.Deserialize(reader);
 }
示例#2
0
 public CharacterSpellModification InitCharacterSpellModification(byte ModificationType, short SpellId, CharacterBaseCharacteristic Value)
 {
     this.ModificationType = ModificationType;
     this.SpellId          = SpellId;
     this.Value            = Value;
     return(this);
 }
 public CharacterCharacteristicsInformations InitCharacterCharacteristicsInformations(long Experience, long ExperienceLevelFloor, long ExperienceNextLevelFloor, long ExperienceBonusLimit, long Kamas, short StatsPoints, short AdditionnalPoints, short SpellsPoints, ActorExtendedAlignmentInformations AlignmentInfos, int LifePoints, int MaxLifePoints, short EnergyPoints, short MaxEnergyPoints, short ActionPointsCurrent, short MovementPointsCurrent, CharacterBaseCharacteristic Initiative, CharacterBaseCharacteristic Prospecting, CharacterBaseCharacteristic ActionPoints, CharacterBaseCharacteristic MovementPoints, CharacterBaseCharacteristic Strength, CharacterBaseCharacteristic Vitality, CharacterBaseCharacteristic Wisdom, CharacterBaseCharacteristic Chance, CharacterBaseCharacteristic Agility, CharacterBaseCharacteristic Intelligence, CharacterBaseCharacteristic Range, CharacterBaseCharacteristic SummonableCreaturesBoost, CharacterBaseCharacteristic Reflect, CharacterBaseCharacteristic CriticalHit, short CriticalHitWeapon, CharacterBaseCharacteristic CriticalMiss, CharacterBaseCharacteristic HealBonus, CharacterBaseCharacteristic AllDamagesBonus, CharacterBaseCharacteristic WeaponDamagesBonusPercent, CharacterBaseCharacteristic DamagesBonusPercent, CharacterBaseCharacteristic TrapBonus, CharacterBaseCharacteristic TrapBonusPercent, CharacterBaseCharacteristic GlyphBonusPercent, CharacterBaseCharacteristic RuneBonusPercent, CharacterBaseCharacteristic PermanentDamagePercent, CharacterBaseCharacteristic TackleBlock, CharacterBaseCharacteristic TackleEvade, CharacterBaseCharacteristic PAAttack, CharacterBaseCharacteristic PMAttack, CharacterBaseCharacteristic PushDamageBonus, CharacterBaseCharacteristic CriticalDamageBonus, CharacterBaseCharacteristic NeutralDamageBonus, CharacterBaseCharacteristic EarthDamageBonus, CharacterBaseCharacteristic WaterDamageBonus, CharacterBaseCharacteristic AirDamageBonus, CharacterBaseCharacteristic FireDamageBonus, CharacterBaseCharacteristic DodgePALostProbability, CharacterBaseCharacteristic DodgePMLostProbability, CharacterBaseCharacteristic NeutralElementResistPercent, CharacterBaseCharacteristic EarthElementResistPercent, CharacterBaseCharacteristic WaterElementResistPercent, CharacterBaseCharacteristic AirElementResistPercent, CharacterBaseCharacteristic FireElementResistPercent, CharacterBaseCharacteristic NeutralElementReduction, CharacterBaseCharacteristic EarthElementReduction, CharacterBaseCharacteristic WaterElementReduction, CharacterBaseCharacteristic AirElementReduction, CharacterBaseCharacteristic FireElementReduction, CharacterBaseCharacteristic PushDamageReduction, CharacterBaseCharacteristic CriticalDamageReduction, CharacterBaseCharacteristic PvpNeutralElementResistPercent, CharacterBaseCharacteristic PvpEarthElementResistPercent, CharacterBaseCharacteristic PvpWaterElementResistPercent, CharacterBaseCharacteristic PvpAirElementResistPercent, CharacterBaseCharacteristic PvpFireElementResistPercent, CharacterBaseCharacteristic PvpNeutralElementReduction, CharacterBaseCharacteristic PvpEarthElementReduction, CharacterBaseCharacteristic PvpWaterElementReduction, CharacterBaseCharacteristic PvpAirElementReduction, CharacterBaseCharacteristic PvpFireElementReduction, CharacterBaseCharacteristic MeleeDamageDonePercent, CharacterBaseCharacteristic MeleeDamageReceivedPercent, CharacterBaseCharacteristic RangedDamageDonePercent, CharacterBaseCharacteristic RangedDamageReceivedPercent, CharacterBaseCharacteristic WeaponDamageDonePercent, CharacterBaseCharacteristic WeaponDamageReceivedPercent, CharacterBaseCharacteristic SpellDamageDonePercent, CharacterBaseCharacteristic SpellDamageReceivedPercent, CharacterSpellModification[] SpellModifications, int ProbationTime)
 {
     this.Experience               = Experience;
     this.ExperienceLevelFloor     = ExperienceLevelFloor;
     this.ExperienceNextLevelFloor = ExperienceNextLevelFloor;
     this.ExperienceBonusLimit     = ExperienceBonusLimit;
     this.Kamas                          = Kamas;
     this.StatsPoints                    = StatsPoints;
     this.AdditionnalPoints              = AdditionnalPoints;
     this.SpellsPoints                   = SpellsPoints;
     this.AlignmentInfos                 = AlignmentInfos;
     this.LifePoints                     = LifePoints;
     this.MaxLifePoints                  = MaxLifePoints;
     this.EnergyPoints                   = EnergyPoints;
     this.MaxEnergyPoints                = MaxEnergyPoints;
     this.ActionPointsCurrent            = ActionPointsCurrent;
     this.MovementPointsCurrent          = MovementPointsCurrent;
     this.Initiative                     = Initiative;
     this.Prospecting                    = Prospecting;
     this.ActionPoints                   = ActionPoints;
     this.MovementPoints                 = MovementPoints;
     this.Strength                       = Strength;
     this.Vitality                       = Vitality;
     this.Wisdom                         = Wisdom;
     this.Chance                         = Chance;
     this.Agility                        = Agility;
     this.Intelligence                   = Intelligence;
     this.Range                          = Range;
     this.SummonableCreaturesBoost       = SummonableCreaturesBoost;
     this.Reflect                        = Reflect;
     this.CriticalHit                    = CriticalHit;
     this.CriticalHitWeapon              = CriticalHitWeapon;
     this.CriticalMiss                   = CriticalMiss;
     this.HealBonus                      = HealBonus;
     this.AllDamagesBonus                = AllDamagesBonus;
     this.WeaponDamagesBonusPercent      = WeaponDamagesBonusPercent;
     this.DamagesBonusPercent            = DamagesBonusPercent;
     this.TrapBonus                      = TrapBonus;
     this.TrapBonusPercent               = TrapBonusPercent;
     this.GlyphBonusPercent              = GlyphBonusPercent;
     this.RuneBonusPercent               = RuneBonusPercent;
     this.PermanentDamagePercent         = PermanentDamagePercent;
     this.TackleBlock                    = TackleBlock;
     this.TackleEvade                    = TackleEvade;
     this.PAAttack                       = PAAttack;
     this.PMAttack                       = PMAttack;
     this.PushDamageBonus                = PushDamageBonus;
     this.CriticalDamageBonus            = CriticalDamageBonus;
     this.NeutralDamageBonus             = NeutralDamageBonus;
     this.EarthDamageBonus               = EarthDamageBonus;
     this.WaterDamageBonus               = WaterDamageBonus;
     this.AirDamageBonus                 = AirDamageBonus;
     this.FireDamageBonus                = FireDamageBonus;
     this.DodgePALostProbability         = DodgePALostProbability;
     this.DodgePMLostProbability         = DodgePMLostProbability;
     this.NeutralElementResistPercent    = NeutralElementResistPercent;
     this.EarthElementResistPercent      = EarthElementResistPercent;
     this.WaterElementResistPercent      = WaterElementResistPercent;
     this.AirElementResistPercent        = AirElementResistPercent;
     this.FireElementResistPercent       = FireElementResistPercent;
     this.NeutralElementReduction        = NeutralElementReduction;
     this.EarthElementReduction          = EarthElementReduction;
     this.WaterElementReduction          = WaterElementReduction;
     this.AirElementReduction            = AirElementReduction;
     this.FireElementReduction           = FireElementReduction;
     this.PushDamageReduction            = PushDamageReduction;
     this.CriticalDamageReduction        = CriticalDamageReduction;
     this.PvpNeutralElementResistPercent = PvpNeutralElementResistPercent;
     this.PvpEarthElementResistPercent   = PvpEarthElementResistPercent;
     this.PvpWaterElementResistPercent   = PvpWaterElementResistPercent;
     this.PvpAirElementResistPercent     = PvpAirElementResistPercent;
     this.PvpFireElementResistPercent    = PvpFireElementResistPercent;
     this.PvpNeutralElementReduction     = PvpNeutralElementReduction;
     this.PvpEarthElementReduction       = PvpEarthElementReduction;
     this.PvpWaterElementReduction       = PvpWaterElementReduction;
     this.PvpAirElementReduction         = PvpAirElementReduction;
     this.PvpFireElementReduction        = PvpFireElementReduction;
     this.MeleeDamageDonePercent         = MeleeDamageDonePercent;
     this.MeleeDamageReceivedPercent     = MeleeDamageReceivedPercent;
     this.RangedDamageDonePercent        = RangedDamageDonePercent;
     this.RangedDamageReceivedPercent    = RangedDamageReceivedPercent;
     this.WeaponDamageDonePercent        = WeaponDamageDonePercent;
     this.WeaponDamageReceivedPercent    = WeaponDamageReceivedPercent;
     this.SpellDamageDonePercent         = SpellDamageDonePercent;
     this.SpellDamageReceivedPercent     = SpellDamageReceivedPercent;
     this.SpellModifications             = SpellModifications;
     this.ProbationTime                  = ProbationTime;
     return(this);
 }