File was renamed from ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/SetEquipPartStarLV.py |
| | |
| | | #
|
| | | #-------------------------------------------------------------------------------
|
| | | #
|
| | | ##@package GM.Commands.SetEquipPartStarLV
|
| | | ##@package GM.Commands.SetEquipPartPlusLV
|
| | | #
|
| | | # @todo:设置装备部位公共星级
|
| | | # @todo:设置装备部位公共强化等级
|
| | | # @author hxp
|
| | | # @date 2015-12-15
|
| | | # @version 1.0
|
| | | #
|
| | | # 详细描述: 设置装备部位公共星级
|
| | | # 详细描述: 设置装备部位公共强化等级
|
| | | #
|
| | | #---------------------------------------------------------------------
|
| | | """Version = 2015-12-15 17:00"""
|
| | |
| | | for i in indexList:
|
| | | curPack = curPlayer.GetItemManager().GetPack(pType)
|
| | | curEquip = curPack.GetAt(i)
|
| | | ChEquip.SetEquipPartStarLV(curPlayer, pType, i, curEquip, setStarLV)
|
| | | ChEquip.SetEquipPartPlusLV(curPlayer, pType, i, curEquip, setStarLV)
|
| | | ChEquip.SetEquipPartProficiency(curPlayer, pType, i, 0)
|
| | | Operate_EquipPlus.DoLogic_OnEquipPartStarLVChange(curPlayer, pType)
|
| | | ChEquip.NotifyEquipPartStarLV(curPlayer)
|
| | | GameWorld.DebugAnswer(curPlayer, "设置所有部位星级为: %s" % setStarLV)
|
| | | ChEquip.NotifyEquipPartPlusLV(curPlayer)
|
| | | GameWorld.DebugAnswer(curPlayer, "设置所有部位强化等级为: %s" % setStarLV)
|
| | | return
|
| | |
|
| | | if len(cmdList) != 3:
|
| | |
| | | curPack = curPlayer.GetItemManager().GetPack(packType)
|
| | | curEquip = curPack.GetAt(index)
|
| | |
|
| | | maxStarLV = ItemCommon.GetItemMaxStarLV(curEquip)
|
| | | maxStarLV = ItemCommon.GetItemMaxPlusLV(curEquip)
|
| | | starLV = min(starLV, maxStarLV)
|
| | | ChEquip.SetEquipPartStarLV(curPlayer, packType, index, curEquip, starLV)
|
| | | ChEquip.SetEquipPartPlusLV(curPlayer, packType, index, curEquip, starLV)
|
| | | ChEquip.SetEquipPartProficiency(curPlayer, packType, index, 0)
|
| | | Operate_EquipPlus.DoLogic_OnEquipPartStarLVChange(curPlayer, packType)
|
| | | return
|
| | |
| | | #===============================================================================
|
| | |
|
| | | #===========================================================================
|
| | | # GameWorld.DebugAnswer(curPlayer, "SetEquipPartStarLV 参数[packType, index, starLV]")
|
| | | # GameWorld.DebugAnswer(curPlayer, "SetEquipPartPlusLV 参数[packType, index, starLV]")
|
| | | # for pType, indexList in ChConfig.Pack_EquipPart_CanPlusStar.items():
|
| | | # GameWorld.DebugAnswer(curPlayer, " packType=%s(%s)ʱ" % (pType, packTypeStrDict.get(pType, "")))
|
| | | # indexStr = "index="
|
| | |
| | | # indexStr += "%s(%s)," % (i, indexStrDict.get("%s_%s" % (pType, i), ""))
|
| | | # GameWorld.DebugAnswer(curPlayer, " %s" % indexStr)
|
| | | #
|
| | | # GameWorld.DebugAnswer(curPlayer, " SetEquipPartStarLV 星级 可重置所有部位为对应的星级")
|
| | | # GameWorld.DebugAnswer(curPlayer, " SetEquipPartPlusLV 强化等级 可重置所有部位为对应的强化等级")
|
| | | # GameWorld.DebugAnswer(curPlayer, "------------------------------")
|
| | | #===========================================================================
|
| | | return
|