From 1f982fe95cfaa236db7dcf3d94c17626cfa34ad6 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 23 一月 2026 18:37:31 +0800
Subject: [PATCH] 129 【战斗】战斗系统-服务端(修正属性计算结果本身是整数时不再进行小数处理;小数精确2位小数;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerArena.py |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerArena.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerArena.py
index 90ef549..4c5ce76 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerArena.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerArena.py
@@ -25,6 +25,7 @@
 import PlayerGoldInvest
 import PlayerViewCache
 import NetPackCommon
+import TurnAttack
 import PyGameData
 import GameWorld
 import ChConfig
@@ -414,13 +415,14 @@
         matchInfo = ChPyNetSendPack.tagSCArenaMatchInfo()
         matchInfo.PlayerID = matchID
         if viewCache:
+            fightPower = TurnAttack.GetCacheLineupFightPower(viewCache, ShareDefine.BatPreset_ArenaDef)
             matchInfo.PlayerName = viewCache.GetPlayerName()
             matchInfo.RealmLV = viewCache.GetRealmLV()
             matchInfo.LV = viewCache.GetLV()
             matchInfo.Face = viewCache.GetFace()
             matchInfo.FacePic = viewCache.GetFacePic()
-            matchInfo.FightPower = viewCache.GetFightPower()
-            matchInfo.FightPowerEx = viewCache.GetFightPowerEx()
+            matchInfo.FightPower = fightPower % ChConfig.Def_PerPointValue
+            matchInfo.FightPowerEx = fightPower / ChConfig.Def_PerPointValue
             matchInfo.TitleID = viewCache.GetTitleID()
         else:
             matchInfo.PlayerName = "p%s" % matchID

--
Gitblit v1.8.0