Commit 5b0a99f76dabe74a6f4d7e470e8d2d2b5157ccaf

Authored by zhangqijia
1 parent cf809bea

fix: 修复 getDeltaValue函数的bug

Showing 1 changed file with 1 additions and 5 deletions   Show diff stats
src/models/RolePlugin.lua
@@ -2893,11 +2893,7 @@ function RolePlugin.bind(Role) @@ -2893,11 +2893,7 @@ function RolePlugin.bind(Role)
2893 end 2893 end
2894 2894
2895 if result[1] and value then 2895 if result[1] and value then
2896 - if delta == 0 then  
2897 - delta = delta * result[1] / 100  
2898 - else  
2899 - delta = (delta + value )* result[1] / 100  
2900 - end 2896 + delta = (delta + value )* result[1] / 100
2901 end 2897 end
2902 return delta 2898 return delta
2903 end 2899 end