def _checkNpcNames(self, name):
def match(npcName, name = name):
name = TextEncoder().encodeWtext(name)
name = string.strip(name)
return TextEncoder.upper(npcName) == TextEncoder.upper(name)
for npcId in NPCList.NPC_LIST.keys():
data = NPCList.NPC_LIST[npcId]
if type(data) is types.DictType and HumanDNA.HumanDNA.setName in data:
npcName = data[HumanDNA.HumanDNA.setName]
if (self.independent or not (self.main.isNPCEditor)) and match(npcName):
self.notify.info('name matches NPC name "%s"' % npcName)
return OL.NCGeneric
match(npcName)
评论列表
文章目录