| | |
| | | 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
|
| | |
|
| | |
|