From 743b1abc6410e8329228df55709baee412bfae3a Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 07 二月 2025 12:11:24 +0800
Subject: [PATCH] 10352 【BT】免费买断版本(修复获得、消耗代币小于100时系统提示显示为0的bug;)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py
index 4b5b358..997baef 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py
@@ -3265,7 +3265,7 @@
#通知客户端失去金钱
if isNotify:
if type_Price == ShareDefine.TYPE_Price_PayCoin:
- NotifyCode(curPlayer, "LostMoney", [type_Price, lostMoney/100])
+ NotifyCode(curPlayer, "LostMoney", [type_Price, str(round(lostMoney/100.0, 2))])
else:
NotifyCode(curPlayer, "LostMoney", [type_Price, lostMoney])
return True
@@ -3544,7 +3544,7 @@
if isSysHint and priceType != ShareDefine.TYPE_Price_BourseMoney:
#通知客户端得到金钱
if priceType == ShareDefine.TYPE_Price_PayCoin:
- NotifyCode(curPlayer, "GetMoney", [priceType, value/100])
+ NotifyCode(curPlayer, "GetMoney", [priceType, str(round(value/100.0, 2))])
else:
NotifyCode(curPlayer, "GetMoney", [priceType, value])
__GiveMoneyAfter(curPlayer, priceType, value, giveType, addDataDict)
--
Gitblit v1.8.0