| | |
| | | import PlayerBillboard
|
| | | import PlayerActivity
|
| | | import PlayerSuccess
|
| | | import PyMapTable
|
| | | import ItemCommon
|
| | | import ItemControler
|
| | | import QuestCommon
|
| | |
| | | # @remarks 函数详细说明.
|
| | | def CreateTruck(curPlayer,truckMoney, money_type,summonID, eventID, tick):
|
| | | # 跨服服务器功能限制
|
| | | if GameWorld.IsMergeServer():
|
| | | if GameWorld.IsCrossServer():
|
| | | return
|
| | |
|
| | | #判断是否已经存在镖车,存在消失
|
| | |
| | | GameWorld.Log("DoPlayerEnterTruck -> 无法找到镖车" , curPlayer.GetPlayerID())
|
| | | return
|
| | |
|
| | | # if curPlayerTruck.GetHP() == 0:
|
| | | # if GameObj.GetHP(curPlayerTruck) == 0:
|
| | | # GameWorld.Log("镖车已死亡, 拒绝")
|
| | | # return
|
| | |
|
| | |
| | | # @return: 损坏镖车最小血量
|
| | | def GetTruckDestroyMinHP(curTruck):
|
| | | destroyMinHPRate = ReadChConfig.GetEvalChConfig("TruckDestroyMinHPRate")
|
| | | minHP = max(0, int(curTruck.GetMaxHP() * destroyMinHPRate/float(ChConfig.Def_MaxRateValue)))
|
| | | minHP = max(0, int(GameObj.GetMaxHP(curTruck) * destroyMinHPRate/float(ChConfig.Def_MaxRateValue)))
|
| | | return minHP
|
| | |
|
| | |
|
| | |
| | | TruckCreatAwardDict = ReadChConfig.GetEvalChConfig("TruckCreatAward")
|
| | | if truckLv in TruckCreatAwardDict:
|
| | | for itemID, itemCount, isBind in TruckCreatAwardDict[truckLv]:
|
| | | ItemControler.GivePlayerItem(curPlayer, itemID, itemCount, isBind, [IPY_GameWorld.rptItem, IPY_GameWorld.rptAnyWhere], showEff=True)
|
| | | ItemControler.GivePlayerItem(curPlayer, itemID, itemCount, 0, [IPY_GameWorld.rptItem, IPY_GameWorld.rptAnyWhere])
|
| | | PlayerControl.NotifyCode(curPlayer, "GeRen_liubo_366028", [itemID, itemCount])
|
| | | PlayerControl.WorldNotify(0, "GeRen_liubo_161795", [curPlayer.GetPlayerName(), itemID, itemCount])
|
| | |
|