Ver código fonte

```
feat(action-parser): 更新游戏中文动作描述和术语将“加注”相关术语统一调整为“加分”,盲注系统提示优化为“前置预置分”,
摊牌阶段描述从“摊牌”改为“展示底牌”,提升中文表达准确性和可读性。
```

fugui001 3 meses atrás
pai
commit
838f908143

+ 5 - 5
ruoyi-modules/ruoyi-system/src/main/java/org/dromara/business/utils/ActionParserUtils.java

@@ -21,7 +21,7 @@ public class ActionParserUtils {
         "FOLD", "弃牌",
         "CHECK", "过牌",
         "CALL", "跟注",
-        "RAISE", "加",
+        "RAISE", "加",
         "ALL_IN", "全下",
         "BET", "下注"
     );
@@ -76,7 +76,7 @@ public class ActionParserUtils {
         List<String> chineseActions = new ArrayList<>();
 
         // ✅ STEP 1: 插入盲注系统提示
-        chineseActions.add("[系统] ANTE:" + anteAmount);
+        chineseActions.add("[系统] 前置预置分:" + anteAmount);
         chineseActions.add("[系统] 小盲(" + sbPlayerName + "):" + sbAmount);
         chineseActions.add("[系统] 大盲(" + bbPlayerName + "):" + bbAmount);
 
@@ -120,7 +120,7 @@ public class ActionParserUtils {
                     holeCardsText = ",底牌:" + String.join(",", playerInfo.holeCards);
                 }
 
-                String desc = String.format("[%s] 玩家 %s(座位%d%s)%s,加注金额为 %d",
+                String desc = String.format("[%s] 玩家 %s(座位%d%s)%s,下分值为 %d",
                     stage, playerNameWithTags, seatNumber, holeCardsText, actionDetail, addAmount);
 
                 chineseActions.add(desc);
@@ -178,7 +178,7 @@ public class ActionParserUtils {
                 int winAmount = winAmountMap.getOrDefault(playerId, 0);
                 String winText = winAmount > 0 ? ",+ " + winAmount : "";
 
-                String showdownDesc = String.format("[摊牌] 玩家 %s(座位%d)摊牌,底牌:%s%s",
+                String showdownDesc = String.format("[展示底牌] 玩家 %s(座位%d)展示底牌,底牌:%s%s",
                     playerNameWithTags, playerInfo.seat, formattedHoleCards, winText);
 
                 chineseActions.add(showdownDesc);
@@ -233,7 +233,7 @@ public class ActionParserUtils {
             }
         }
 
-        return String.format("ANTE(%d) + 小盲(%s) %d + 大盲(%s) %d",
+        return String.format("前置预置分(%d) + 小盲(%s) %d + 大盲(%s) %d",
             anteAmount, sbPlayerName, sbAmount, bbPlayerName, bbAmount);
     }