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,7 +846,7 @@ function _M.startWorkBattleRpc(agent, data) | ||
846 | if needCount > 0 then | 846 | if needCount > 0 then |
847 | role:costItems({[ticketId] = needCount}, {log = {desc = "workBattle", int1 = id}}) | 847 | role:costItems({[ticketId] = needCount}, {log = {desc = "workBattle", int1 = id}}) |
848 | end | 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 | local reward, change = workWinReward(role, bonusData, 3, count, true) | 850 | local reward, change = workWinReward(role, bonusData, 3, count, true) |
851 | SendPacket(actionCodes.Hang_startWorkBattleRpc, MsgPack.pack({reward = reward, change = change})) | 851 | SendPacket(actionCodes.Hang_startWorkBattleRpc, MsgPack.pack({reward = reward, change = change})) |
852 | else | 852 | else |
@@ -977,7 +977,7 @@ function _M.endWorkBattleRpc(agent, data) | @@ -977,7 +977,7 @@ function _M.endWorkBattleRpc(agent, data) | ||
977 | if needCount > 0 then | 977 | if needCount > 0 then |
978 | role:costItems({[ticketId] = needCount}, {log = {desc = "workBattle", int1 = id}}) | 978 | role:costItems({[ticketId] = needCount}, {log = {desc = "workBattle", int1 = id}}) |
979 | end | 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 | reward, change = workWinReward(role, bonusData, rewardType) | 981 | reward, change = workWinReward(role, bonusData, rewardType) |
982 | end | 982 | end |
983 | else | 983 | else |