public SwordResourceAttributeSet(SwordPrimaryAttributeSet primary) { m_primary = primary; MaxHealth = new SwordHealthAttribute(m_primary); MaxMana = new SwordManaAttribute(m_primary); MaxStamina = new SwordStaminaAttribute(m_primary); }
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); }
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); }
/// <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); }
public DamageReflectMultiplierAttribute(SwordPrimaryAttributeSet primary) : base(primary, DefencePower.DamageReflectMultiplier) { }
public MindHardinessAttribute(SwordPrimaryAttributeSet primary) : base(primary, DefencePower.MindHardiness) { }
public SpellHardinessAttribute(SwordPrimaryAttributeSet primary) : base(primary, DefencePower.SpellHardiness) { }
public PhysicalHardinessAttribute(SwordPrimaryAttributeSet primary) : base(primary, DefencePower.PhysicalHardiness) { }
public SmashChanceAttribute(SwordPrimaryAttributeSet primary) : base(primary, AttackPower.SmashChance) { }
public SwordActorResource(SwordPrimaryAttributeSet primary, Resource id, float initialValue = 0, float persistentValue = 0) : base((int)id, initialValue, persistentValue) { m_primary = primary; }
public SwordStaminaAttribute(SwordPrimaryAttributeSet primary) : base(primary, Resource.Stamina) { }
public PhysicalSaveAttribute(SwordPrimaryAttributeSet primary) : base(primary, DefencePower.PhysicalSave) { }
public SwordPowerAttribute(SwordPrimaryAttributeSet primary, AttackPower id) : base((int)id) { m_primary = primary; }
public ArmorPenetrationAttribute(SwordPrimaryAttributeSet primary) : base(primary, AttackPower.ArmorPenetration) { }
public SpellPowerMultiplierAttribute(SwordPrimaryAttributeSet primary) : base(primary, AttackPower.SpellPowerMultiplier) { }
public PhysicalPowerMultiplierAttribute(SwordPrimaryAttributeSet primary) : base(primary, AttackPower.PhysicalPowerMultiplier) { }
public SwordArmorAttribute(SwordPrimaryAttributeSet primary, DefencePower id) : base((int)id) { m_primary = primary; }
public MindSaveAttribute(SwordPrimaryAttributeSet primary) : base(primary, DefencePower.MindSave) { }
public CriticalChanceAttribute(SwordPrimaryAttributeSet primary) : base(primary, AttackPower.CriticalChance) { }
public SwordHealthAttribute(SwordPrimaryAttributeSet primary) : base(primary, Resource.Health) { }
public SpellSaveAttribute(SwordPrimaryAttributeSet primary) : base(primary, DefencePower.SpellSave) { }
public CriticalMultiplierAttribute(SwordPrimaryAttributeSet primary) : base(primary, AttackPower.CriticalMultiplierr) { }
public ParryChanceAttribute(SwordPrimaryAttributeSet primary) : base(primary, DefencePower.ParryChance) { }
public SwordManaAttribute(SwordPrimaryAttributeSet primary) : base(primary, Resource.Mana) { }