mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
*** empty log message ***
This commit is contained in:
parent
1cbe39e68e
commit
ce403f4066
@ -89,9 +89,7 @@ class DistributedLevelAI(DistributedObjectAI.DistributedObjectAI,
|
||||
self.notify.debug("setOuch %s" % penalty)
|
||||
# make sure penalty is > 0
|
||||
if av and (penalty > 0):
|
||||
curHp = av.getHp()
|
||||
newHp = max(0, curHp-penalty)
|
||||
av.b_setHp(newHp)
|
||||
av.takeDamage(penalty)
|
||||
|
||||
if __debug__:
|
||||
# level editors should call this func to tweak attributes of level
|
||||
|
Loading…
x
Reference in New Issue
Block a user