2019-11-02 17:27:54 -05:00
|
|
|
from toontown.safezone import DistributedTreasure
|
|
|
|
|
|
|
|
class DistributedTagTreasure(DistributedTreasure.DistributedTreasure):
|
|
|
|
|
|
|
|
def __init__(self, cr):
|
|
|
|
DistributedTreasure.DistributedTreasure.__init__(self, cr)
|
|
|
|
self.modelPath = 'phase_4/models/props/icecream'
|
2020-01-14 13:28:52 -06:00
|
|
|
self.grabSoundPath = 'phase_4/audio/sfx/SZ_DD_treasure.ogg'
|
2019-11-02 17:27:54 -05:00
|
|
|
self.accept('minigameOffstage', self.handleMinigameOffstage)
|
|
|
|
|
|
|
|
def handleEnterSphere(self, collEntry):
|
|
|
|
if not base.localAvatar.isIt:
|
|
|
|
self.d_requestGrab()
|
|
|
|
return None
|
|
|
|
|
|
|
|
def handleMinigameOffstage(self):
|
|
|
|
self.nodePath.reparentTo(hidden)
|