hxp
2024-11-26 aba9f71e75f2d956c621c9ad21593838e04fa312
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/Operate_PlayerBuyZhenQi.py
@@ -25,6 +25,7 @@
import ShareDefine
import GameFuncComm
import ItemCommon
import ItemControler
import PlayerSuccess
import PlayerActivity
import PlayerBossReborn
@@ -129,6 +130,7 @@
        giveMoneyType = IPY_GameWorld.TYPE_Price_Gold_Paper
        PlayerControl.GiveMoney(curPlayer, giveMoneyType, addMoney, ChConfig.Def_GiveMoney_Pray, addDataDict, False)
        PlayerControl.NotifyCode(curPlayer, 'MoneyPray_HowMuch', [addMoney, giveMoneyType])
        ItemControler.NotifyGiveAwardInfo(curPlayer, [], "Pray", moneyInfo={giveMoneyType:addMoney})
        PlayerBossReborn.AddBossRebornActionCnt(curPlayer, ChConfig.Def_BRAct_MoneyPray, 1)
        PlayerActTask.AddActTaskValue(curPlayer, ChConfig.ActTaskType_MoneyPray)
        
@@ -163,6 +165,7 @@
        addExp = eval(GetExpPrayAward())
        PlayerControl.PlayerControl(curPlayer).AddExp(addExp)
        PlayerControl.NotifyCode(curPlayer, 'ExpPray_HowMuch', [addExp])
        ItemControler.NotifyGiveAwardInfo(curPlayer, [], "Pray", exp=addExp)
        if not isCostItem: #用物品不增加次数
            PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_HasPrayCnt % buyType, curCnt + 1)
        PlayerBossReborn.AddBossRebornActionCnt(curPlayer, ChConfig.Def_BRAct_ExpPray, 1)