|
@@ -14,6 +14,10 @@ public class Skill : SkillRoot
|
|
|
|
|
|
#region 配置
|
|
|
|
|
|
+ public float UnlockAheadAmt
|
|
|
+ {
|
|
|
+ get { return UnlockAheadBaseAmt + (UnlockLv - ManaCenter.Level - 1) * UnlockAheadDeltaAmt; }
|
|
|
+ }
|
|
|
public override string ID
|
|
|
{
|
|
|
get
|
|
@@ -42,7 +46,8 @@ public class Skill : SkillRoot
|
|
|
|
|
|
public int UnlockLv;
|
|
|
public float UnlockAmt;
|
|
|
- public float UnlockAheadAmt;
|
|
|
+ public float UnlockAheadBaseAmt;
|
|
|
+ public float UnlockAheadDeltaAmt;
|
|
|
public string UnlockPos;
|
|
|
|
|
|
public Current BuyCur;
|
|
@@ -120,35 +125,36 @@ public class Skill : SkillRoot
|
|
|
#region 配置
|
|
|
|
|
|
ID_ = int.Parse(attribute[0].Value);
|
|
|
- Icon_ = attribute[30].Value;
|
|
|
- Anim = attribute[31].Value;
|
|
|
- Label = attribute[32].Value;
|
|
|
-
|
|
|
- UnlockPos = attribute[18].Value;
|
|
|
- UpgradeCD = attribute[28].Value;
|
|
|
- UpgradeFml = attribute[23].Value;
|
|
|
- UpgradePlus = attribute[24].Value;
|
|
|
- UpgradePerson = attribute[25].Value;
|
|
|
- UpgradeDuration = attribute[27].Value;
|
|
|
- UpgradeCoinOnce = attribute[26].Value;
|
|
|
+ Icon_ = attribute[31].Value;
|
|
|
+ Anim = attribute[32].Value;
|
|
|
+ Label = attribute[33].Value;
|
|
|
+
|
|
|
+ UnlockPos = attribute[19].Value;
|
|
|
+ UpgradeCD = attribute[29].Value;
|
|
|
+ UpgradeFml = attribute[24].Value;
|
|
|
+ UpgradePlus = attribute[25].Value;
|
|
|
+ UpgradePerson = attribute[26].Value;
|
|
|
+ UpgradeDuration = attribute[28].Value;
|
|
|
+ UpgradeCoinOnce = attribute[27].Value;
|
|
|
|
|
|
UnlockLv = Auxiliary.IntParse(attribute[13].Value,0);
|
|
|
ItemIndex = Auxiliary.IntParse(attribute[3].Value,0);
|
|
|
|
|
|
CD = Auxiliary.FloatParse(attribute[12].Value,0);
|
|
|
- UseAmt = Auxiliary.FloatParse(attribute[20].Value,0);
|
|
|
+ UseAmt = Auxiliary.FloatParse(attribute[21].Value,0);
|
|
|
Duration = Auxiliary.FloatParse(attribute[11].Value,0);
|
|
|
- UnlockAmt = Auxiliary.FloatParse(attribute[17].Value,0);
|
|
|
+ UnlockAmt = Auxiliary.FloatParse(attribute[18].Value,0);
|
|
|
DiamondOnce = Auxiliary.FloatParse(attribute[9].Value,0);
|
|
|
- UnlockAheadAmt = Auxiliary.FloatParse(attribute[15].Value,0);
|
|
|
+ UnlockAheadBaseAmt = Auxiliary.FloatParse(attribute[16].Value,0);
|
|
|
+ UnlockAheadDeltaAmt = Auxiliary.FloatParse(attribute[15].Value, 0);
|
|
|
|
|
|
SkillTab = SkillClassParse(attribute[2].Value);
|
|
|
CoolLock = Auxiliary.BoolParse(attribute[5].Value, false);
|
|
|
- UpgradeAmt = UpgradeAmtParse(attribute[22].Value);
|
|
|
+ UpgradeAmt = UpgradeAmtParse(attribute[23].Value);
|
|
|
|
|
|
- BuyCur = CurrentParse(attribute[19].Value);
|
|
|
- UnlockCur = CurrentParse(attribute[16].Value);
|
|
|
- UpgradeCur = CurrentParse(attribute[21].Value);
|
|
|
+ BuyCur = CurrentParse(attribute[20].Value);
|
|
|
+ UnlockCur = CurrentParse(attribute[17].Value);
|
|
|
+ UpgradeCur = CurrentParse(attribute[22].Value);
|
|
|
UnlockAheadCur = CurrentParse(attribute[14].Value);
|
|
|
|
|
|
ValueBuffParse(out Person, out PersonBuff, attribute[7].Value);
|
|
@@ -408,7 +414,7 @@ public class Skill : SkillRoot
|
|
|
ManaReso.SetText("Fe_Lab0", "");
|
|
|
ManaReso.SetText("Fe_Lab1", GetDescription(0));
|
|
|
|
|
|
- ManaReso.SetText("Fe_BtnLab", string.Format("{0}({1}{2:0})", Language.GetStr("UI", "Fe_BtnLab0"), ImageParse(UnlockAheadCur), UnlockAheadAmt));
|
|
|
+ ManaReso.SetText("Fe_BtnLab", string.Format("{0}({1}{2:0})", Language.GetStr("UI", "Fe_BtnLab0"), ImageParse(UnlockAheadCur), UnlockAheadAmt.ToString("0")));
|
|
|
|
|
|
ManaReso.SetButtonEvent
|
|
|
(
|