| | |
| | | if not dayFreeMatchCountMax:
|
| | | GameWorld.DebugLog("每日匹配次数没有限制,不需要购买次数!", playerID)
|
| | | return
|
| | | dayBuyCountMax = IpyGameDataPY.GetFuncCfg("CrossRealmPKMatchCount", 2)
|
| | | todayPKCount = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_CrossPK_TodayPKCount)
|
| | | todayBuyCount = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_CrossPK_TodayBuyCount)
|
| | | todayItemAddCount = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_CrossPK_ItemAddCount)
|
| | | canPKCount = dayFreeMatchCountMax + todayBuyCount + todayItemAddCount - todayPKCount
|
| | | if canPKCount >= dayFreeMatchCountMax:
|
| | | GameWorld.DebugLog("可PK次数不能大于每日免费次数!", playerID)
|
| | | return
|
| | | dayBuyCountMax = IpyGameDataPY.GetFuncCfg("CrossRealmPKMatchCount", 2)
|
| | | #todayBuyCount = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_CrossPK_TodayBuyCount)
|
| | | if dayBuyCountMax and todayBuyCount >= dayBuyCountMax:
|
| | | GameWorld.DebugLog("今日购买次数已满,无法购买!todayBuyCount=%s" % (todayBuyCount), playerID)
|
| | | return
|