| | |
| | | # @return: None
|
| | | def OnSignDay(index, clientData, tick):
|
| | | # 跨服服务器功能限制
|
| | | if GameWorld.IsMergeServer():
|
| | | if GameWorld.IsCrossServer():
|
| | | return
|
| | | curPlayer = GameWorld.GetPlayerManager().GetPlayerByIndex(index)
|
| | | #功能开启判断
|
| | |
| | | PlayerPet.CalcPetItemAddPlayerAttr(curPlayer)
|
| | | PlayerControl.PlayerControl(curPlayer).RefreshPlayerAttrState()
|
| | |
|
| | | |
| | | ipyData = IpyGameDataPY.GetIpyGameDataByCondition('TreasureUp', {'PrivilegeID':ChConfig.MWPrivilege_SignDayAddAttr}, False, False)
|
| | | privilegeIpyData = IpyGameDataPY.GetIpyGameDataNotLog('TreasurePrivilege', ChConfig.MWPrivilege_SignDayAddAttr)
|
| | | if ipyData and privilegeIpyData:
|
| | | mwID = ipyData.GetMWID()
|
| | | effDict = privilegeIpyData.GetEffectValue()
|
| | | mwID = IpyGameDataPY.GetFuncCfg('MWSignDayAttr', 2)
|
| | | if mwID:
|
| | | effDict = IpyGameDataPY.GetFuncEvalCfg('MWSignDayAttr', 1, {})
|
| | | if PlayerMagicWeapon.GetIsActiveMagicWeapon(curPlayer, mwID) and effDict:
|
| | | PlayerControl.NotifyCode(curPlayer, "SignInText1", [mwID, effDict.keys()[0], effDict.values()[0]])
|
| | |
|