2019-12-30 00:07:56 -06:00
|
|
|
from . import DistributedBarrelBaseAI
|
2019-11-02 17:27:54 -05:00
|
|
|
from direct.directnotify import DirectNotifyGlobal
|
|
|
|
from direct.task import Task
|
|
|
|
|
|
|
|
class DistributedBeanBarrelAI(DistributedBarrelBaseAI.DistributedBarrelBaseAI):
|
|
|
|
|
|
|
|
def __init__(self, level, entityId):
|
|
|
|
x = y = z = h = 0
|
|
|
|
DistributedBarrelBaseAI.DistributedBarrelBaseAI.__init__(self, level, entityId)
|
|
|
|
|
|
|
|
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.addMoney(self.rewardPerGrab)
|