mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-25 20:52:26 -06:00
17 lines
568 B
Python
17 lines
568 B
Python
|
import DistributedBarrelBaseAI
|
||
|
from direct.directnotify import DirectNotifyGlobal
|
||
|
from direct.task import Task
|
||
|
|
||
|
class DistributedHealBarrelAI(DistributedBarrelBaseAI.DistributedBarrelBaseAI):
|
||
|
|
||
|
def __init__(self, level, entId):
|
||
|
x = y = z = h = 0
|
||
|
DistributedBarrelBaseAI.DistributedBarrelBaseAI.__init__(self, level, entId)
|
||
|
|
||
|
def d_setGrab(self, avId):
|
||
|
self.notify.debug('d_setGrab %s' % avId)
|
||
|
self.sendUpdate('setGrab', [avId])
|
||
|
av = self.air.doId2do.get(avId)
|
||
|
if av:
|
||
|
av.toonUp(self.getRewardPerGrab())
|