hxp
2021-04-07 b29c07351d8c6be81f3ba2dd28aeffef3c96257f
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActSingleRecharge.py
@@ -25,6 +25,7 @@
import NetPackCommon
import GameWorld
import ChConfig
import CommFunc
def GetTemplateID(cfgID, dayIndex):
    if not cfgID or dayIndex == None:
@@ -126,7 +127,7 @@
            continue
        
        singleValue = ipyData.GetSingleRechargeValue()
        if curRechargeValue < singleValue:
        if curRechargeValue < CommFunc.RMBToCoin(singleValue):
            continue
        awardRecord |= pow(2, awardIndex) 
        
@@ -226,7 +227,7 @@
        GameWorld.DebugLog("找不到该单笔累充活动档位索引奖励!actNum=%s,templateID=%s,awardIndex=%s" % (actNum, templateID, awardIndex), playerID)
        return
    
    singleValue = awardIpyData.GetSingleRechargeValue()
    singleValue = CommFunc.RMBToCoin(awardIpyData.GetSingleRechargeValue())
    curRechargeValue = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_SingleRechargeValue % actNum)
    
    if curRechargeValue < singleValue:
@@ -249,7 +250,7 @@
    
    notifyKey = awardIpyData.GetNotifyKey()
    if notifyKey:
        PlayerControl.WorldNotify(0, notifyKey, [curPlayer.GetPlayerName(), singleValue])
        PlayerControl.WorldNotify(0, notifyKey, [curPlayer.GetPlayerName(), awardIpyData.GetSingleRechargeValue()])
        
    for itemID, itemCount, isAuctionItem in awardItemList:
        ItemControler.GivePlayerItem(curPlayer, itemID, itemCount, isAuctionItem, [IPY_GameWorld.rptItem], event=["SingleRechargeAward", False, {}])
@@ -321,7 +322,7 @@
        for awardIpyData in ipyDataList:
            awardInfo = ChPyNetSendPack.tagMCActSingleRechargeAward()
            awardInfo.AwardIndex = awardIpyData.GetAwardIndex()
            awardInfo.SingleRechargeValue = awardIpyData.GetSingleRechargeValue()
            awardInfo.SingleRechargeValue = CommFunc.RMBToCoin(awardIpyData.GetSingleRechargeValue())
            awardInfo.AwardItem = []
            awardItemList = GameWorld.GetDictValueByRangeKey(awardIpyData.GetAwardItem(), actWorldLV, [])
            for itemID, itemCount, isBind in awardItemList: