Skip to content

Commit 6832b04

Browse files
committed
更新工具
1 parent 83e6df1 commit 6832b04

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

kbe/tools/xlsx2py/xlsx2py/functions.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,3 +190,17 @@ def funcUNZipFloat(mapDict, dctData, chilidDict, data):
190190

191191
return int(data) / 10000.0
192192

193+
def funcFlags(mapDict, dctData, chilidDict, data):
194+
"""
195+
返回标记组合数据
196+
比如: 想在excel上配置标记组合
197+
近程攻击:0x00000001
198+
远程攻击:0x00000002
199+
暴击:0x00000004
200+
用此函数可以输出多个标记组成一个uint32的数字
201+
"""
202+
val = 0
203+
for x in data.split(","):
204+
val |= int(mapDict[x])
205+
206+
return val

0 commit comments

Comments
 (0)