| | |
| | | import ItemCommon
|
| | | import ChConfig
|
| | | import ChEquip
|
| | | import EventShell
|
| | |
|
| | | import random
|
| | |
|
| | |
| | |
|
| | | def GetEquipWashMaxLV(curPlayer, equipPlace):
|
| | | # @return: 0-未开放; >=1-该装备位最大可洗练等级
|
| | | maxLVDict = IpyGameDataPY.GetFuncEvalCfg("EquipWashMaxLV", 1)
|
| | | washType = GetEquipWashType(equipPlace)
|
| | | if not washType:
|
| | | return 0
|
| | | maxLVDict = IpyGameDataPY.GetFuncEvalCfg("EquipWashGroup%s" % washType, 2)
|
| | | if not maxLVDict:
|
| | | return 0
|
| | | equipPack = curPlayer.GetItemManager().GetPack(IPY_GameWorld.rptEquip)
|
| | |
| | | washSpecLVIpyData = IpyGameDataPY.GetIpyGameDataNotLog("EquipWashSpec", washType, washLV)
|
| | | if washSpecLVIpyData:
|
| | | PlayerControl.WorldNotify(0, "WashMasterCongratulation", [curPlayer.GetPlayerName(), curPlayer.GetPlayerID(), washType, washLV])
|
| | | EventShell.EventRespons_EquipWash(curPlayer, washType, washLV)
|
| | | break
|
| | | return True
|
| | |
|