浏览代码

赛事积分制

xhb 2 月之前
父节点
当前提交
8f237bb29e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      incubator-game/src/main/java/com/incubator/game/contest/Contest.java

+ 1 - 1
incubator-game/src/main/java/com/incubator/game/contest/Contest.java

@@ -783,7 +783,7 @@ public class Contest {
                         Player tmPlayer = this.actors.getOrDefault(settlementData.playerId, null);
                         if (tmPlayer != null) {
                             list.add(new Struct.PromotionData(tmPlayer.getId(), tmPlayer.data.avatarUrl,tmPlayer.data.name , tmPlayer.data.accumulatedPoints-10000,i,this.rooms.size() == 1));
-                            tmPlayer.data.matchPoints = settlementData.score;
+                            tmPlayer.data.matchPoints += tmPlayer.data.accumulatedPoints-10000;
                             tmPlayer.data.accumulatedPoints = 10000;
                             objects.add(tmPlayer);
                         }