소스 검색

修改bug

lzx 13 시간 전
부모
커밋
85676d19a8
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      Assets/Scripts/GameUI/UI/DaoYouPanel/DaoYouInfoPanel.cs

+ 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