From a87f40756dee14ef230ffc8f7cf0ff914d9ee2c0 Mon Sep 17 00:00:00 2001 From: zhangqiang <657634622@qq.com> Date: Fri, 25 Jun 2021 15:14:12 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E9=B8=BF=E8=92=99=E9=98=B5=E3=80=91?= =?UTF-8?q?=E5=B0=86=E4=BA=94=E6=98=9F=E7=A5=9E=E5=B0=86=E6=94=BE=E5=85=A5?= =?UTF-8?q?=E9=B8=BF=E8=92=99=E9=98=B5=EF=BC=8C=E6=9C=9F=E9=97=B4=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=E5=8D=87=E6=98=9F=E6=93=8D=E4=BD=9C=EF=BC=8C=E8=BF=99?= =?UTF-8?q?=E6=97=B6=E5=80=99=E6=8A=8A=E7=A5=9E=E5=B0=86=E4=B8=8B=E9=98=B5?= =?UTF-8?q?=EF=BC=8C=E7=94=B1=E7=AD=89=E7=BA=A7=E6=8E=A7=E5=88=B6=E7=9A=84?= =?UTF-8?q?=E5=89=8D=E4=BA=94=E4=B8=AA=E5=A4=A9=E8=B5=8B=E4=BC=9A=E8=A2=AB?= =?UTF-8?q?=E4=BF=9D=E7=95=99=EF=BC=8C=E9=87=8D=E7=99=BB=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E6=AD=A3=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/ManagedResources/~Lua/Modules/Hero/HeroManager.lua | 4 +++- .../~Lua/Modules/RoleInfo/RoleUpStarLayout.lua | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Hero/HeroManager.lua b/Assets/ManagedResources/~Lua/Modules/Hero/HeroManager.lua index 5b8c3bcd39..6b6d5b4986 100644 --- a/Assets/ManagedResources/~Lua/Modules/Hero/HeroManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Hero/HeroManager.lua @@ -516,7 +516,9 @@ function this.UpdateSingleHeroDatas(heroDId, heroLv, heroStar, breakId, upStarId if heroDatas[heroDId] then heroDatas[heroDId].lv = heroLv heroDatas[heroDId].star = heroStar - heroDatas[heroDId].breakId = breakId + if breakId then + heroDatas[heroDId].breakId = breakId + end heroDatas[heroDId].upStarId = upStarId local actionPowerRormula = gameSetting[1].ActionPowerRormula heroDatas[heroDId].actionPower = diff --git a/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleUpStarLayout.lua b/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleUpStarLayout.lua index aea330a951..0f038eb975 100644 --- a/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleUpStarLayout.lua +++ b/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleUpStarLayout.lua @@ -450,7 +450,7 @@ function RoleUpStarLayout:StarUpClick() end --扣除升星 消耗的材料 更新英雄数据 function RoleUpStarLayout:DeleteUpStarMaterials() - HeroManager.UpdateSingleHeroDatas(curHeroData.dynamicId,curHeroData.oriLv,curHeroData.star+1,curHeroData.breakId,upStarRankUpConfig.Id,true) + HeroManager.UpdateSingleHeroDatas(curHeroData.dynamicId,curHeroData.oriLv,curHeroData.star+1,nil,upStarRankUpConfig.Id,true) HeroManager.UpdateSingleHeroSkillData(curHeroData.dynamicId) for i, v in pairs(heroDatas) do if curHeroData == v then