| | |
| | | import PyGameData
|
| | | import GameFuncComm
|
| | | import PlayerPet
|
| | | import PlayerVip
|
| | | import datetime
|
| | | import time
|
| | | import FormulaControl
|
| | |
| | | PlayerActGarbageSorting.AddActGarbageTaskProgress(curPlayer, ChConfig.Def_GarbageTask_Activity, addValue)
|
| | | PlayerTongTianLing.AddTongTianTaskValue(curPlayer, ChConfig.TTLTaskType_Activity, addValue)
|
| | | PlayerActTask.AddActTaskValue(curPlayer, ChConfig.ActTaskType_Activity, addValue)
|
| | | PlayerControl.NotifyCode(curPlayer, "GetActivity", [addValue])
|
| | | #PlayerControl.NotifyCode(curPlayer, "GetActivity", [addValue])
|
| | | SyncDailyActivityInfo(curPlayer)
|
| | | GameWorld.DebugLog("增加活跃度,addValue=%s,multiple=%s,addExtraPoint=%s,isLVUp=%s"
|
| | | % (addValue, multiple, addExtraPoint, isLVUp), curPlayer.GetPlayerID())
|
| | |
| | |
|
| | | if addType == 0:
|
| | | dayBuyTimesLimit = ipyData.GetDayBuyTimes()
|
| | | buyTimesPrivilegeID = ipyData.GetBuyTimesPrivilegeID()
|
| | | vipBuyCountEx = PlayerVip.GetPrivilegeValue(curPlayer, buyTimesPrivilegeID)
|
| | | dayBuyTimesLimit += vipBuyCountEx
|
| | | moneyType = ipyData.GetMoneyType()
|
| | | buyNeedMoneyList = ipyData.GetBuyNeedMoney()
|
| | | if not dayBuyTimesLimit or not buyNeedMoneyList:
|