Commit 1d724b8be3ca98940fa10a6cd9d68a52157ed795
1 parent
6d25be1b
pvp 匹配 和 失败扣减积分
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
src/models/RolePvp.lua
| ... | ... | @@ -9,7 +9,7 @@ local PVP_RANK_TIME_SORT_PRECISION = 360 -- 时间精度 每6分钟忽略差异 |
| 9 | 9 | local PVP_RANK_BASE_SCORE = globalCsv.pvp_base_score -- 初始积分 |
| 10 | 10 | |
| 11 | 11 | -- 匹配规则改为以排名来匹配 |
| 12 | -local PVP_GET_ROBOT_SCORE = 2400 -- 2400分以下低档位匹配机器人 | |
| 12 | +local PVP_GET_ROBOT_SCORE = 1300 -- 1300分以下低档位匹配机器人 | |
| 13 | 13 | local PRE_RANGE_COUNT = 20 -- 每个档位人数 |
| 14 | 14 | local NEED_MATCH = 3 --匹配到多少人 |
| 15 | 15 | |
| ... | ... | @@ -73,7 +73,7 @@ function Role:changePvpScoreCommon(matchId, isWin) |
| 73 | 73 | if isWin then |
| 74 | 74 | local scoreChange = math.ceil(60 / (1 + 10 ^ ((myScore - matchScore) / 400))) |
| 75 | 75 | myScore = myScore + scoreChange |
| 76 | - matchScore = matchScore - math.ceil(scoreChange / 3) -- 防守方失败时,扣分减为原来的1/3 | |
| 76 | + matchScore = matchScore - math.ceil(scoreChange / 3 * 2) -- 防守方失败时,扣分减为原来的2/3 | |
| 77 | 77 | else |
| 78 | 78 | local scoreChange = math.ceil(60 / (1 + 10 ^ ((matchScore - myScore) / 400))) |
| 79 | 79 | myScore = myScore - scoreChange |
| ... | ... | @@ -139,7 +139,7 @@ function Role:changePvpScoreHigh(matchId, isWin) |
| 139 | 139 | if isWin then |
| 140 | 140 | local scoreChange = math.ceil(50 / (1 + 10 ^ ((myScore - matchScore) / 1000))) |
| 141 | 141 | myScore = myScore + scoreChange |
| 142 | - matchScore = matchScore - math.ceil(scoreChange / 3) -- 防守方失败时,扣分减为原来的1/3 | |
| 142 | + matchScore = matchScore - math.ceil(scoreChange / 3 * 2) -- 防守方失败时,扣分减为原来的2/3 | |
| 143 | 143 | else |
| 144 | 144 | local scoreChange = math.ceil(50 / (1 + 10 ^ ((matchScore - myScore) / 1000))) |
| 145 | 145 | myScore = myScore - scoreChange | ... | ... |