Poodletooth-iLand/toontown/coghq/DistributedHealBarrelAI.py
Master Jumblespeed d882959bfa switch to remote
2015-05-18 22:11:33 -04:00

16 lines
568 B
Python
Executable file

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