hxp
2023-12-05 a0d75602e6614e45cd8349346a11af0b3b657368
10028 【港台】港台0.1折处理
1个文件已修改
12 ■■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCoin.py 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCoin.py
@@ -339,6 +339,10 @@
        DataRecordPack.DR_CTGError(curPlayer, "The orderCoin is not equal to the ipyData's RMB(%s)!" % payRMBNum, addDRDict)
        return
    
    # 港台0.1折特殊处理:游戏内部逻辑按原版原价处理,所以验证完金额后需要乘100
    orderCoin *= 100
    addDRDict["orderCoin"] = orderCoin
    addGold, prizeGold, giveItemList, ctgIpyData = 0, 0, [], None
    
    if ipyData.GetCTGID():
@@ -497,9 +501,9 @@
        if not ctgRealFirstTime:
            ctgRealFirstTime = int(time.time())
            PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_CTGRealFirstTime, ctgRealFirstTime)
        ctgRealToday += orderCoin
        ctgRealToday = min(ctgRealToday + orderCoin, ChConfig.Def_UpperLimit_DWord)
        PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_CTGRealToday, ctgRealToday)
        ctgRealTotal += orderCoin
        ctgRealTotal = min(ctgRealTotal + orderCoin, ChConfig.Def_UpperLimit_DWord)
        PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_CTGRealTotal, ctgRealTotal)
        
    notifyMark = ctgIpyData.GetNotifyMark() if ctgIpyData else ""
@@ -525,10 +529,10 @@
    PlayerVip.AddVIPExp(curPlayer, addVIPExp)
    
    changeCoinPointBefore = curPlayer.GetChangeCoinPointTotal()
    curPlayer.SetChangeCoinPointTotal(changeCoinPointBefore + orderCoin, 0)
    curPlayer.SetChangeCoinPointTotal(min(changeCoinPointBefore + orderCoin, ChConfig.Def_UpperLimit_DWord), 0)
    PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_FirstGoldTry, 0)
    
    todayCTGCoinTotal = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_TodayCTGCoinTotal) + orderCoin
    todayCTGCoinTotal = min(curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_TodayCTGCoinTotal) + orderCoin, ChConfig.Def_UpperLimit_DWord)
    PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_TodayCTGCoinTotal, todayCTGCoinTotal)
    
    goldAfter = curPlayer.GetGold()