From 1e03fac0bcbd9c57ae5da827cb1ea3294c606781 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 22 九月 2023 13:22:07 +0800
Subject: [PATCH] 9936 【BT0.1】【主干】人族法宝(任务 进度)给予奖励

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

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorld.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorld.py
index 9b7c547..0f0ba57 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorld.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorld.py
@@ -1941,6 +1941,10 @@
             return value
     return defValue
 
+def GetDictKeyNumByBit(bit, isBin=True):
+    perKeyMaxBit = 31 if isBin else 9
+    keyNum = bit / perKeyMaxBit
+    return keyNum
 
 ## 根据玩家字典对应的位值, 使用多个key支持N位索引
 #  @param curPlayer

--
Gitblit v1.8.0