Selaa lähdekoodia

Merge branch 'master' of http://192.168.123.2:3000/ck/XiuXianGame

liao 1 päivä sitten
vanhempi
commit
8b920f767e

+ 2 - 2
Assets/Scripts/GameUI/UI/DaoYouPanel/DaoYouInfoPanel.cs

@@ -176,9 +176,9 @@ namespace Fort23.Mono
 
                     for (var i = daoYouData.favorabilityLv; i < configs.Length; i++)
                     {
-                        if (daoYouData.exp >= configs[i].exp)
+                        if (daoYouData.exp >= configs[i-1].exp)
                         {
-                            daoYouData.exp -= configs[i].exp;
+                            daoYouData.exp -= configs[i-1].exp;
                             daoYouData.favorabilityLv++;
                         }
                         else

+ 6 - 0
Assets/Scripts/GameUI/UI/HeroInformationPanel/HeroInformationPanel.cs

@@ -104,6 +104,12 @@ namespace Fort23.Mono
 
             Btn_TuPo.onClick.AddListener(async () =>
             {
+                if (PlayerManager.Instance.myHero.powerUpConfig.ID >= 160)
+                {
+                    TipMessagePanel.OpenTipMessagePanel(10810);
+                    return;
+                }
+
                 int currentMiao = (int)((TimeHelper.ClientNow() - PlayerManager.Instance.myHero.heroData.upTime) /
                                         1000);