Ejemplo n.º 1
0
 public SwordResourceAttributeSet(SwordPrimaryAttributeSet primary)
 {
     m_primary  = primary;
     MaxHealth  = new SwordHealthAttribute(m_primary);
     MaxMana    = new SwordManaAttribute(m_primary);
     MaxStamina = new SwordStaminaAttribute(m_primary);
 }
Ejemplo n.º 2
0
 public SwordPowerAttributeSet(SwordPrimaryAttributeSet primary)
 {
     CriticalChance          = new CriticalChanceAttribute(primary);
     CriticalMultiplier      = new CriticalMultiplierAttribute(primary);
     PhysicalPowerMultiplier = new PhysicalPowerMultiplierAttribute(primary);
     SpellPowerMultiplier    = new SpellPowerMultiplierAttribute(primary);
     MindPowerMultiplier     = new SpellPowerMultiplierAttribute(primary);
     ArmorPenetration        = new ArmorPenetrationAttribute(primary);
     SmashChance             = new SmashChanceAttribute(primary);
 }
Ejemplo n.º 3
0
 public SwordArmorAttributeSet(SwordPrimaryAttributeSet primary)
 {
     PhysicalSave            = new PhysicalSaveAttribute(primary);
     SpellSave               = new SpellSaveAttribute(primary);
     MindSave                = new MindSaveAttribute(primary);
     ParryChance             = new ParryChanceAttribute(primary);
     DodgeChance             = new ParryChanceAttribute(primary);
     PhysicalHardiness       = new PhysicalHardinessAttribute(primary);
     SpellHardiness          = new SpellHardinessAttribute(primary);
     MindHardiness           = new MindHardinessAttribute(primary);
     DamageReflectChance     = new DamageReflectChanceAttribute(primary);
     DamageReflectMultiplier = new DamageReflectMultiplierAttribute(primary);
 }
Ejemplo n.º 4
0
        /// <summary>
        /// 根据种族和职业赋值初始化的属性
        /// </summary>
        public void InitAttr(ActorClass actorClass, ActorRace actorRace, float healthRank)
        {
            m_class = actorClass;
            m_race  = actorRace;
            var classMeta = ClassMetaManager.GetMeta((int)m_class);
            var raceMeta  = RaceMetaManager.GetMeta((int)m_race);

            m_primaryAttr = new SwordPrimaryAttributeSet();
            m_primaryAttr.InitFromClassAndRace(classMeta, raceMeta);

            m_powerAttr = new SwordPowerAttributeSet(m_primaryAttr);

            m_armorAttr = new SwordArmorAttributeSet(m_primaryAttr);

            m_resAttr = new SwordResourceAttributeSet(m_primaryAttr);
            m_resAttr.InitClassAndRace(classMeta, raceMeta, healthRank);
        }
Ejemplo n.º 5
0
 public DamageReflectMultiplierAttribute(SwordPrimaryAttributeSet primary)
     : base(primary, DefencePower.DamageReflectMultiplier)
 {
 }
Ejemplo n.º 6
0
 public MindHardinessAttribute(SwordPrimaryAttributeSet primary) : base(primary, DefencePower.MindHardiness)
 {
 }
Ejemplo n.º 7
0
 public SpellHardinessAttribute(SwordPrimaryAttributeSet primary) : base(primary, DefencePower.SpellHardiness)
 {
 }
Ejemplo n.º 8
0
 public PhysicalHardinessAttribute(SwordPrimaryAttributeSet primary) : base(primary, DefencePower.PhysicalHardiness)
 {
 }
Ejemplo n.º 9
0
 public SmashChanceAttribute(SwordPrimaryAttributeSet primary) : base(primary, AttackPower.SmashChance)
 {
 }
Ejemplo n.º 10
0
 public SwordActorResource(SwordPrimaryAttributeSet primary, Resource id,
                           float initialValue = 0, float persistentValue = 0) : base((int)id, initialValue, persistentValue)
 {
     m_primary = primary;
 }
Ejemplo n.º 11
0
 public SwordStaminaAttribute(SwordPrimaryAttributeSet primary) :
     base(primary, Resource.Stamina)
 {
 }
Ejemplo n.º 12
0
 public PhysicalSaveAttribute(SwordPrimaryAttributeSet primary) : base(primary, DefencePower.PhysicalSave)
 {
 }
Ejemplo n.º 13
0
 public SwordPowerAttribute(SwordPrimaryAttributeSet primary, AttackPower id) : base((int)id)
 {
     m_primary = primary;
 }
Ejemplo n.º 14
0
 public ArmorPenetrationAttribute(SwordPrimaryAttributeSet primary) : base(primary, AttackPower.ArmorPenetration)
 {
 }
Ejemplo n.º 15
0
 public SpellPowerMultiplierAttribute(SwordPrimaryAttributeSet primary)
     : base(primary, AttackPower.SpellPowerMultiplier)
 {
 }
Ejemplo n.º 16
0
 public PhysicalPowerMultiplierAttribute(SwordPrimaryAttributeSet primary)
     : base(primary, AttackPower.PhysicalPowerMultiplier)
 {
 }
Ejemplo n.º 17
0
 public SwordArmorAttribute(SwordPrimaryAttributeSet primary, DefencePower id) : base((int)id)
 {
     m_primary = primary;
 }
Ejemplo n.º 18
0
 public MindSaveAttribute(SwordPrimaryAttributeSet primary) : base(primary, DefencePower.MindSave)
 {
 }
Ejemplo n.º 19
0
 public CriticalChanceAttribute(SwordPrimaryAttributeSet primary) : base(primary, AttackPower.CriticalChance)
 {
 }
Ejemplo n.º 20
0
 public SwordHealthAttribute(SwordPrimaryAttributeSet primary) :
     base(primary, Resource.Health)
 {
 }
Ejemplo n.º 21
0
 public SpellSaveAttribute(SwordPrimaryAttributeSet primary) : base(primary, DefencePower.SpellSave)
 {
 }
Ejemplo n.º 22
0
 public CriticalMultiplierAttribute(SwordPrimaryAttributeSet primary) : base(primary, AttackPower.CriticalMultiplierr)
 {
 }
Ejemplo n.º 23
0
 public ParryChanceAttribute(SwordPrimaryAttributeSet primary) : base(primary, DefencePower.ParryChance)
 {
 }
Ejemplo n.º 24
0
 public SwordManaAttribute(SwordPrimaryAttributeSet primary) :
     base(primary, Resource.Mana)
 {
 }