From 2941a7635bb04ca59afa820b51a23aca9dc70eb9 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 29 十月 2019 11:59:23 +0800
Subject: [PATCH] 4610 【恺英】【bug】脱机上线报错
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
index a1b5b03..39c9ca2 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
@@ -840,8 +840,8 @@
doCnt *= killCount
totalRate = dropRate * doCnt
- dropCount = totalRate / maxRate # 可掉落件数
- rateEx = totalRate % maxRate # 剩余概率
+ dropCount = totalRate / Def_NPCMaxDropRate # 可掉落件数
+ rateEx = totalRate % Def_NPCMaxDropRate # 剩余概率
if GameWorld.CanHappen(rateEx, Def_NPCMaxDropRate):
dropCount += 1
dropIDList += [itemID] * dropCount
--
Gitblit v1.8.0