mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-10-31 08:47:54 +00:00
16 lines
571 B
Python
Executable file
16 lines
571 B
Python
Executable file
import DistributedBarrelBaseAI
|
|
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)
|