| | |
| | | import IPY_GameWorld
|
| | | import PlayerControl
|
| | | import ItemControler
|
| | | import PlayerMagicWeapon
|
| | | import PlayerFamilyRedPacket
|
| | | import PlayerGatherSoul
|
| | | import IpyGameDataPY
|
| | | import PyGameData
|
| | | import EventReport
|
| | |
| | | import datetime
|
| | | import time
|
| | | import math
|
| | | import ChEquip
|
| | | import PlayerRune
|
| | | import Operate_EquipStone
|
| | | import Operate_EquipWash
|
| | | import PlayerFeastRedPacket
|
| | | import PlayerDogz
|
| | | import DataRecordPack
|
| | |
|
| | |
|
| | |
| | | self.attrDict = {} # 完成成就获得的属性 {attrid:attrvalue}
|
| | | self.hasAward = True #是否有奖励
|
| | | self.redPacketID = 0 # 红包ID
|
| | | self.magicWeaponExp = {} # 法宝升级经验{id:exp}
|
| | | return
|
| | |
|
| | |
|
| | |
| | | succData.exp = successIpyData.GetExp()
|
| | | succData.attrDict = successIpyData.GetAwardAttr()
|
| | | succData.redPacketID = successIpyData.GetRedPacketID()
|
| | | magicWeaponID = successIpyData.GetMagicWeaponID()
|
| | | magicWeaponExp = successIpyData.GetMagicWeaponExp()
|
| | | if magicWeaponID and magicWeaponExp:
|
| | | succData.magicWeaponExp[magicWeaponID] = magicWeaponExp
|
| | | succData.hasAward = bool(succData.awardItemDict or succData.moneyDict or succData.exp or succData.attrDict or succData.redPacketID or succData.magicWeaponExp \
|
| | | succData.hasAward = bool(succData.awardItemDict or succData.moneyDict or succData.exp or succData.attrDict or succData.redPacketID \
|
| | | or succData.awardItemDict2)
|
| | | successDataObjDict[succData.succID]=succData
|
| | | if tuple(succData.condition) not in conditionDict:
|
| | |
| | |
|
| | | if isNeedSys:
|
| | | PlayerControl.WorldNotify(0, 'AncientBattlefield_1', [playerName, succID])
|
| | | |
| | | for mwID in succDataObj.magicWeaponExp.keys():
|
| | | EventReport.WriteEvent_MWSuccess(curPlayer, mwID, succID, ChConfig.CME_Log_Start)
|
| | | |
| | | GameWorld.DebugLog(" 完成成就succID=%s, type=%s,time=%s"
|
| | | % (succID, successType, curTime))
|
| | |
|
| | |
| | | #发红包
|
| | | if succData.redPacketID:
|
| | | PlayerFamilyRedPacket.CreatRedPacketByID(curPlayer, succData.redPacketID, PlayerFamilyRedPacket.State_NoGot, succID)
|
| | | #法宝经验
|
| | | if succData.magicWeaponExp:
|
| | | for mwID, addExp in succData.magicWeaponExp.items():
|
| | | PlayerMagicWeapon.AddMagicWeaponUpExp(curPlayer, mwID, addExp)
|
| | | EventReport.WriteEvent_MWSuccess(curPlayer, mwID, succID, ChConfig.CME_Log_End, 1)
|
| | | GameWorld.DebugLog(" OK! awardItemDict=%s moneyDict=%s" % (itemDict, succData.moneyDict))
|
| | | ItemControler.NotifyGiveAwardInfo(curPlayer, giveItemList, "SuccessAward", exp=succData.exp, moneyInfo=succData.moneyDict)
|
| | | return itemDict
|
| | |
| | |
|
| | | def AddEnterFBSuccess(curPlayer, mapID, addCount):
|
| | | #进入副本成就相关
|
| | | |
| | | if mapID == ChConfig.Def_FBMapID_BZZD:
|
| | | #仙界秘境
|
| | | DoAddSuccessProgress(curPlayer, ShareDefine.SuccType_BZZD, addCount)
|
| | | elif mapID == ChConfig.Def_FBMapID_IceLode:
|
| | | #冰晶矿脉
|
| | | DoAddSuccessProgress(curPlayer, ShareDefine.SuccType_IceLode, addCount)
|
| | | return
|
| | |
|
| | | def GetSuccessScoreAward(curPlayer, awardIndex):
|