Commit 057afd89b6df365b6f0ec778fd110925c716a05f

Authored by jiyue
2 parents 3127068f d1944a2b

Merge branch 'cn/develop' into cn/publish/preview

Showing 2 changed files with 5 additions and 9 deletions   Show diff stats
src/actions/DinerAction.lua
@@ -977,10 +977,10 @@ function _M.collectRpc(agent , data) @@ -977,10 +977,10 @@ function _M.collectRpc(agent , data)
977 977
978 local id = msg.id 978 local id = msg.id
979 local customerData = csvdb["diner_customerCsv"][id] 979 local customerData = csvdb["diner_customerCsv"][id]
980 - if not id or not customerData then return end 980 + if not id or not customerData then return 1 end
981 local customer = role.dinerData:getProperty("customer") 981 local customer = role.dinerData:getProperty("customer")
982 if customer[id] ~= 0 then 982 if customer[id] ~= 0 then
983 - return 983 + return 2
984 end 984 end
985 985
986 -- 完成前更新一波 后面 加成可能不一样 986 -- 完成前更新一波 后面 加成可能不一样
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
@@ -2912,7 +2908,7 @@ function RolePlugin.bind(Role) @@ -2912,7 +2908,7 @@ function RolePlugin.bind(Role)
2912 local levelBnous = self:getLevelBnous() 2908 local levelBnous = self:getLevelBnous()
2913 2909
2914 local bonus = self:bonusMerged(towerBnous[SystemBnousType.CrusadeTask], levelBnous[SystemBnousType.CrusadeTask]) 2910 local bonus = self:bonusMerged(towerBnous[SystemBnousType.CrusadeTask], levelBnous[SystemBnousType.CrusadeTask])
2915 - return self:getDeltaValue(bonus, value) 2911 + return self:getDeltaValue(bonus, value) +(bonus[0] or 0)
2916 end 2912 end
2917 2913
2918 function Role:getBnousDiner(type, value, flag) 2914 function Role:getBnousDiner(type, value, flag)
@@ -3018,7 +3014,7 @@ function RolePlugin.bind(Role) @@ -3018,7 +3014,7 @@ function RolePlugin.bind(Role)
3018 function Role:getBnousDismantlingImproved(value) 3014 function Role:getBnousDismantlingImproved(value)
3019 local levelBnous = self:getLevelBnous() 3015 local levelBnous = self:getLevelBnous()
3020 local result = levelBnous[SystemBnousType.DismantlingImproved] or {} 3016 local result = levelBnous[SystemBnousType.DismantlingImproved] or {}
3021 - return self:getDeltaValue(result, value) 3017 + return self:getDeltaValue(result, value) + (result[0] or 0)
3022 end 3018 end
3023 3019
3024 function Role:getBnousDaily() 3020 function Role:getBnousDaily()