| | |
| | | import TurnAttack
|
| | | import ItemCommon
|
| | | import NPCCommon
|
| | | import ChEquip
|
| | |
|
| | | import random
|
| | |
|
| | | def OnFBPlayerOnLogin(curPlayer):
|
| | |
| | | def __doCostZhanchui(curPlayer, atkObj, curSkill):
|
| | | ## 扣除战锤消耗
|
| | | costZhanchui = 0
|
| | | isXP = SkillCommon.isXPSkill(curSkill)
|
| | | isXP = SkillCommon.isAngerSkill(curSkill)
|
| | | turnBattleType = atkObj.GetDictByKey(ChConfig.Def_Obj_Dict_TurnBattleType)
|
| | | if isXP:
|
| | | costZhanchui = IpyGameDataPY.GetFuncCfg("ZhanchuiCost", 2)
|
| | |
| | | costZhanchui = IpyGameDataPY.GetFuncCfg("ZhanchuiCost", 3)
|
| | | elif turnBattleType == ChConfig.TurnBattleType_AtkBack:
|
| | | costZhanchui = IpyGameDataPY.GetFuncCfg("ZhanchuiCost", 4)
|
| | | elif SkillCommon.isTurnNormalAtkSkill(curSkill):
|
| | | elif SkillCommon.isTurnNormalSkill(curSkill):
|
| | | costZhanchui = IpyGameDataPY.GetFuncCfg("ZhanchuiCost", 1)
|
| | |
|
| | | if costZhanchui <= 0:
|
| | |
| | | itemColor = GameWorld.GetResultByRandomList(colorRateList)
|
| | | if not itemColor:
|
| | | continue
|
| | | equipIDList = NPCCommon.__GetEquipIDList(0, color=itemColor, findType="MainEquipDrop")
|
| | | equipIDList = NPCCommon.__GetEquipIDList(0, color=itemColor, placeList=ChConfig.Def_MainEquipPlaces, findType="MainEquipDrop")
|
| | | if not equipIDList:
|
| | | continue
|
| | | randEquipID = random.choice(equipIDList)
|
| | |
| | | __doDecomposeMainEquip(curPlayer, decomposeIndexList)
|
| | |
|
| | | # 刷属性
|
| | | |
| | | ChEquip.RefreshRoleEquipAttr(curPlayer)
|
| | | return
|
| | |
|
| | | def __doDecomposeMainEquip(curPlayer, itemIndexList):
|