diff --git a/src/models/RolePvp.lua b/src/models/RolePvp.lua index a61a3d6..ff5c3af 100644 --- a/src/models/RolePvp.lua +++ b/src/models/RolePvp.lua @@ -9,7 +9,7 @@ local PVP_RANK_TIME_SORT_PRECISION = 360 -- 时间精度 每6分钟忽略差异 local PVP_RANK_BASE_SCORE = globalCsv.pvp_base_score -- 初始积分 -- 匹配规则改为以排名来匹配 -local PVP_GET_ROBOT_SCORE = 2400 -- 2400分以下低档位匹配机器人 +local PVP_GET_ROBOT_SCORE = 1300 -- 1300分以下低档位匹配机器人 local PRE_RANGE_COUNT = 20 -- 每个档位人数 local NEED_MATCH = 3 --匹配到多少人 @@ -73,7 +73,7 @@ function Role:changePvpScoreCommon(matchId, isWin) if isWin then local scoreChange = math.ceil(60 / (1 + 10 ^ ((myScore - matchScore) / 400))) myScore = myScore + scoreChange - matchScore = matchScore - math.ceil(scoreChange / 3) -- 防守方失败时,扣分减为原来的1/3 + matchScore = matchScore - math.ceil(scoreChange / 3 * 2) -- 防守方失败时,扣分减为原来的2/3 else local scoreChange = math.ceil(60 / (1 + 10 ^ ((matchScore - myScore) / 400))) myScore = myScore - scoreChange @@ -139,7 +139,7 @@ function Role:changePvpScoreHigh(matchId, isWin) if isWin then local scoreChange = math.ceil(50 / (1 + 10 ^ ((myScore - matchScore) / 1000))) myScore = myScore + scoreChange - matchScore = matchScore - math.ceil(scoreChange / 3) -- 防守方失败时,扣分减为原来的1/3 + matchScore = matchScore - math.ceil(scoreChange / 3 * 2) -- 防守方失败时,扣分减为原来的2/3 else local scoreChange = math.ceil(50 / (1 + 10 ^ ((matchScore - myScore) / 1000))) myScore = myScore - scoreChange -- libgit2 0.21.2