From 9300f5a08d9650a426436a468d4f0e09b6d3dfcb Mon Sep 17 00:00:00 2001 From: wangzhenxing Date: Wed, 27 Apr 2022 18:25:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E8=A1=8C=E5=B0=8F=E5=9C=86=E5=9B=BE?= =?UTF-8?q?=E6=A0=87=E4=BF=AE=E6=94=B9=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Practice/PracticeManager.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Assets/ManagedResources/~Lua/Modules/Practice/PracticeManager.lua b/Assets/ManagedResources/~Lua/Modules/Practice/PracticeManager.lua index 2cf7056e4c..05942e300b 100644 --- a/Assets/ManagedResources/~Lua/Modules/Practice/PracticeManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Practice/PracticeManager.lua @@ -495,6 +495,11 @@ end function this.SetPracticeIcon(obj,level) local spLoader = SpriteLoader.New() local BigLevel = XiuXianConfig[level].RealmId + if BigLevel%3==0 then + BigLevel=BigLevel/3 + else + BigLevel=math.floor(BigLevel/3+1) + end local name = "x_xiuxing_xiaobiao_00"..BigLevel obj:GetComponent("Image").sprite = spLoader:LoadSprite(name) end