我想加的时候并非仅仅对AbstractLightCavalry(轻步兵)有效,而是对所有地方角色均有效,代码有以下3种,哪种加法是正确的 第一种:加在攻击加成代码之前 <ProtoAction> <Name>StaggerRangedAttack</Name> <Damage>20.000000</Damage> <DamageType>Ranged</DamageType> <MinRange>2.000000</MinRange> <MaxRange>25.000000</MaxRange> <ROF>3.000000</ROF> <HitPercent>10.000000</HitPercent>
<HitPercentType>Sweep</HitPercentType> <HitPercent>20</HitPercent> <DamageMultiplier>2</DamageMultiplier>
<HitPercentType>CriticalAttack</HitPercentType> <DamageBonus type ='AbstractLightCavalry'>2.000000</DamageBonus> <DamageBonus type ='xpEagleKnight'>2.000000</DamageBonus> <DamageBonus type ='AbstractHeavyInfantry'>1.250000</DamageBonus> <DamageBonus type ='xpCoyoteMan'>0.750000</DamageBonus> <DamageBonus type ='AbstractCavalry'>0.750000</DamageBonus> </ProtoAction> 第二种:仅仅加在AbstractLightCavalry(轻步兵)后面就行了 <ProtoAction> <Name>StaggerRangedAttack</Name> <Damage>20.000000</Damage> <DamageType>Ranged</DamageType> <MinRange>2.000000</MinRange> <MaxRange>25.000000</MaxRange> <ROF>3.000000</ROF> <DamageBonus type ='AbstractLightCavalry'>2.000000</DamageBonus> <HitPercent>10.000000</HitPercent>
<HitPercentType>Sweep</HitPercentType> <HitPercent>20</HitPercent> <DamageMultiplier>2</DamageMultiplier>
<HitPercentType>CriticalAttack</HitPercentType> <DamageBonus type ='xpEagleKnight'>2.000000</DamageBonus> <DamageBonus type ='AbstractHeavyInfantry'>1.250000</DamageBonus> <DamageBonus type ='xpCoyoteMan'>0.750000</DamageBonus> <DamageBonus type ='AbstractCavalry'>0.750000</DamageBonus> </ProtoAction> 第三种:对于每个攻击加成代码,都要添加 <ProtoAction> <Name>StaggerRangedAttack</Name> <Damage>20.000000</Damage> <DamageType>Ranged</DamageType> <MinRange>2.000000</MinRange> <MaxRange>25.000000</MaxRange> <ROF>3.000000</ROF> <DamageBonus type ='AbstractLightCavalry'>2.000000</DamageBonus> <HitPercent>10.000000</HitPercent>
<HitPercentType>Sweep</HitPercentType> <HitPercent>20</HitPercent> <DamageMultiplier>2</DamageMultiplier>
<HitPercentType>CriticalAttack</HitPercentType> <DamageBonus type ='xpEagleKnight'>2.000000</DamageBonus> <HitPercent>10.000000</HitPercent>
<HitPercentType>Sweep</HitPercentType> <HitPercent>20</HitPercent> <DamageMultiplier>2</DamageMultiplier>
<HitPercentType>CriticalAttack</HitPercentType> <DamageBonus type ='AbstractHeavyInfantry'>1.250000</DamageBonus> <HitPercent>10.000000</HitPercent>
<HitPercentType>Sweep</HitPercentType> <HitPercent>20</HitPercent> <DamageMultiplier>2</DamageMultiplier>
<HitPercentType>CriticalAttack</HitPercentType> <DamageBonus type ='xpCoyoteMan'>0.750000</DamageBonus> <HitPercent>10.000000</HitPercent>
<HitPercentType>Sweep</HitPercentType> <HitPercent>20</HitPercent> <DamageMultiplier>2</DamageMultiplier>
<HitPercentType>CriticalAttack</HitPercentType> <DamageBonus type ='AbstractCavalry'>0.750000</DamageBonus> <HitPercent>10.000000</HitPercent>
<HitPercentType>Sweep</HitPercentType> <HitPercent>20</HitPercent> <DamageMultiplier>2</DamageMultiplier>
<HitPercentType>CriticalAttack</HitPercentType> </ProtoAction> 求大神解答!
|