Commit 007e3c418256d6ea862d5810063a1509a13551bf
1 parent
0e3acc50
增加的分数不同
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/actions/HangAction.lua
... | ... | @@ -846,7 +846,7 @@ function _M.startWorkBattleRpc(agent, data) |
846 | 846 | if needCount > 0 then |
847 | 847 | role:costItems({[ticketId] = needCount}, {log = {desc = "workBattle", int1 = id}}) |
848 | 848 | end |
849 | - redisproxy:hincrby(WORK_BATTLE_COUNT, role:getTimeResetRound(TimeReset["WorkBattle" .. bonusData.type]) * 10 + bonusData.type, count) | |
849 | + redisproxy:hincrby(WORK_BATTLE_COUNT, role:getTimeResetRound(TimeReset["WorkBattle" .. bonusData.type]) * 10 + bonusData.type, count * bonusData.target_add) | |
850 | 850 | local reward, change = workWinReward(role, bonusData, 3, count, true) |
851 | 851 | SendPacket(actionCodes.Hang_startWorkBattleRpc, MsgPack.pack({reward = reward, change = change})) |
852 | 852 | else |
... | ... | @@ -977,7 +977,7 @@ function _M.endWorkBattleRpc(agent, data) |
977 | 977 | if needCount > 0 then |
978 | 978 | role:costItems({[ticketId] = needCount}, {log = {desc = "workBattle", int1 = id}}) |
979 | 979 | end |
980 | - redisproxy:hincrby(WORK_BATTLE_COUNT, role:getTimeResetRound(TimeReset["WorkBattle" .. bonusData.type]) * 10 + bonusData.type, 1) | |
980 | + redisproxy:hincrby(WORK_BATTLE_COUNT, role:getTimeResetRound(TimeReset["WorkBattle" .. bonusData.type]) * 10 + bonusData.type, bonusData.target_add) | |
981 | 981 | reward, change = workWinReward(role, bonusData, rewardType) |
982 | 982 | end |
983 | 983 | else | ... | ... |