Commit 057afd89b6df365b6f0ec778fd110925c716a05f
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 | 977 | |
| 978 | 978 | local id = msg.id |
| 979 | 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 | 981 | local customer = role.dinerData:getProperty("customer") |
| 982 | 982 | if customer[id] ~= 0 then |
| 983 | - return | |
| 983 | + return 2 | |
| 984 | 984 | end |
| 985 | 985 | |
| 986 | 986 | -- 完成前更新一波 后面 加成可能不一样 | ... | ... |
src/models/RolePlugin.lua
| ... | ... | @@ -2893,11 +2893,7 @@ function RolePlugin.bind(Role) |
| 2893 | 2893 | end |
| 2894 | 2894 | |
| 2895 | 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 | 2897 | end |
| 2902 | 2898 | return delta |
| 2903 | 2899 | end |
| ... | ... | @@ -2912,7 +2908,7 @@ function RolePlugin.bind(Role) |
| 2912 | 2908 | local levelBnous = self:getLevelBnous() |
| 2913 | 2909 | |
| 2914 | 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 | 2912 | end |
| 2917 | 2913 | |
| 2918 | 2914 | function Role:getBnousDiner(type, value, flag) |
| ... | ... | @@ -3018,7 +3014,7 @@ function RolePlugin.bind(Role) |
| 3018 | 3014 | function Role:getBnousDismantlingImproved(value) |
| 3019 | 3015 | local levelBnous = self:getLevelBnous() |
| 3020 | 3016 | local result = levelBnous[SystemBnousType.DismantlingImproved] or {} |
| 3021 | - return self:getDeltaValue(result, value) | |
| 3017 | + return self:getDeltaValue(result, value) + (result[0] or 0) | |
| 3022 | 3018 | end |
| 3023 | 3019 | |
| 3024 | 3020 | function Role:getBnousDaily() | ... | ... |