|
@@ -96,7 +96,7 @@ namespace GameLogic.Hero
|
|
|
//计算加得属性
|
|
|
for (var i = 0; i < FabaoConfig.ShuxingIDs.Length; i++)
|
|
|
{
|
|
|
- long attribute = GetAttriBute(FabaoConfig.ShuxingIDs[i]);
|
|
|
+ float attribute = GetAttriBute(FabaoConfig.ShuxingIDs[i]);
|
|
|
long value = (long)(attribute * FabaoConfig.ShuxingPara[0] * 0.01f);
|
|
|
attriButedIC.Add(FabaoConfig.ShuxingIDs[i], value);
|
|
|
}
|
|
@@ -104,16 +104,16 @@ namespace GameLogic.Hero
|
|
|
qiangDu = (long)(FabaoPowerupConfig.Power * SkillConfig.power * 0.01f);
|
|
|
}
|
|
|
|
|
|
- private long GetAttriBute(int type)
|
|
|
+ private float GetAttriBute(int type)
|
|
|
{
|
|
|
switch (type)
|
|
|
{
|
|
|
case 1:
|
|
|
return FabaoPowerupConfig.HP;
|
|
|
case 2:
|
|
|
- return FabaoPowerupConfig.HP;
|
|
|
+ return FabaoPowerupConfig.DEF;
|
|
|
case 3:
|
|
|
- return FabaoPowerupConfig.HP;
|
|
|
+ return FabaoPowerupConfig.ATK;
|
|
|
}
|
|
|
|
|
|
return 0;
|