| | |
| | | # 详细描述: 设置屏幕周围NPC血量
|
| | | #
|
| | | #---------------------------------------------------------------------
|
| | | """Version = 2015-03-22 23:00"""
|
| | | #"""Version = 2015-03-22 23:00"""
|
| | | #---------------------------------------------------------------------
|
| | |
|
| | |
|
| | | import IpyGameDataPY
|
| | | import IPY_GameWorld
|
| | | import GameWorld
|
| | | import ChConfig
|
| | |
| | | return
|
| | |
|
| | | def __GMSetNPCHP(curPlayer, curNPC, setHP):
|
| | | GameObj.SetHP(curNPC, setHP)
|
| | | curNPC.Notify_HPEx()
|
| | | npcID = curNPC.GetNPCID()
|
| | | isByTime = True if IpyGameDataPY.GetIpyGameDataNotLog("NPCTimeLostHP", npcID) else False
|
| | | GameObj.SetHP(curNPC, setHP, isByTime=isByTime)
|
| | | curNPC.Notify_HP()
|
| | | GameWorld.DebugAnswer(curPlayer, "SetNPCHP ID=%s(%s),HP=%s" % (curNPC.GetID(), curNPC.GetNPCID(), setHP))
|
| | | return
|
| | |
|