From 84a39646374dfae0eb40c9458ca95ff988a0a64a Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 07 六月 2021 19:37:36 +0800
Subject: [PATCH] 8971 【主干】【BT2】仙玉和灵石增加支持负数(修复主干GM命令负数参数转化异常问题)

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

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorld.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorld.py
index dfff203..e735c5f 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorld.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorld.py
@@ -406,7 +406,7 @@
     try:
         if type(inputStr) in [int, float]:
             return inputStr
-        if inputStr.isdigit():
+        if inputStr.isdigit() or (inputStr.startswith("-") and inputStr[1:].isdigit()):
             result = int(inputStr)
         else:
             result = float(inputStr)

--
Gitblit v1.8.0