| | |
| | | import IpyGameDataPY
|
| | | import DataRecordPack
|
| | | import EventShell
|
| | | import PlayerVip
|
| | | import ChEquip
|
| | |
|
| | | import math
|
| | |
| | | PlayerMagicWeapon.DoActiveMW(curPlayer, tagItem.GetEffectByIndex(0).GetEffectValue(0))
|
| | | tagItem.Clear()
|
| | | return True
|
| | | itemEff = tagItem.GetEffectByIndex(0)
|
| | | #直升VIP
|
| | | if itemEff.GetEffectID() == ChConfig.Def_Effect_VIPLVCard:
|
| | | isAutoUse = itemEff.GetEffectValue(1)
|
| | | if isAutoUse:
|
| | | tagVIPLV = itemEff.GetEffectValue(0)
|
| | | isOK, _ = PlayerVip.UpgradeVIPLV(curPlayer, tagVIPLV)
|
| | | if isOK:
|
| | | #GameWorld.DebugLog("直升VIP默认使用")
|
| | | tagItem.Clear()
|
| | | return True
|
| | | |
| | | if itemID in ChConfig.Def_TransformItemIDList:
|
| | | # 直接转化为对应货币的物品仅在放入背包时直接转化,否则还是以真实物品的形式存在,但堆叠上限需要做特殊处理
|
| | | if packIndex == IPY_GameWorld.rptItem:
|