Example #1
0
 def __init__(self, cr):
     NodePath.__init__(self, 'DistributedLootContainer')
     DistributedInteractive.DistributedInteractive.__init__(self, cr)
     Lootable.__init__(self)
     self.showLerp = None
     self.appearSound = None
     self.openSound = None
     self.chest = None
     self.type = 0
     self.typeName = ''
     self.creditLocks = []
     self.effect = None
     self.effectScale = 1.25
Example #2
0
 def startLooting(self,
                  plunderList,
                  itemsToTake=0,
                  timer=0,
                  autoShow=False,
                  customName=None):
     self.acceptInteraction()
     if self.openSound:
         self.openSound.play()
     Lootable.startLooting(self,
                           plunderList,
                           itemsToTake,
                           timer=timer,
                           autoShow=autoShow,
                           customName=customName)
 def startLooting(self,
                  plunderList,
                  itemsToTake=0,
                  timer=0,
                  autoShow=False,
                  customName=None):
     Lootable.startLooting(self,
                           plunderList,
                           itemsToTake,
                           timer=timer,
                           autoShow=autoShow,
                           customName=PLocalizer.FoundFishing)
     if self.fishingGame and not self.fishingGame.gui.resultsScreen.isHidden(
     ):
         localAvatar.guiMgr.inventoryUIManager.hidePlunder()
 def __init__(self, cr):
     DistributedMiniGameWorld.__init__(self, cr)
     Lootable.__init__(self)
     self.fsm = CannonDefenseFSM(self)
     self._numWaves = len(CannonDefenseGlobals.waveData)
     self._waveNumber = 0
     self._bonusSet = 0
     self.timeRemaining = 0
     self.treasurePercent = 1.0
     self._DistributedDefendWorld__isGameFull = False
     self.sfxGoldAttack = None
     self.goldBonus = 0
     self.endOfWaveData = EndOfWaveData()
     self.startingState = None
     self.flamingBarrels = []
     self.initGoldPiles()
 def __init__(self, cr):
     DistributedMiniGameWorld.__init__(self, cr)
     Lootable.__init__(self)
     self.fsm = CannonDefenseFSM(self)
     self._numWaves = len(CannonDefenseGlobals.waveData)
     self._waveNumber = 0
     self._bonusSet = 0
     self.timeRemaining = 0
     self.treasurePercent = 1.0
     self._DistributedDefendWorld__isGameFull = False
     self.sfxGoldAttack = None
     self.goldBonus = 0
     self.endOfWaveData = EndOfWaveData()
     self.startingState = None
     self.flamingBarrels = []
     self.initGoldPiles()
 def __init__(self, cr):
     DistributedInteractive.DistributedInteractive.__init__(self, cr)
     Lootable.__init__(self)
     self.index = -1
     self.onABoat = False
     self.fadeTime = 0.5
     self.loadingSequence = None
     self.fishingGame = None
     self.xpBonus = 0
     self.goldBonus = 0
     self.showTutorial = False
     self._DistributedFishingSpot__dialog = None
     self.prevBaseCamParent = None
     self.prevCamPos = None
     self.prevCamHpr = None
     self.oldAvatarPos = None
 def __init__(self, cr):
     DistributedInteractive.DistributedInteractive.__init__(self, cr)
     Lootable.__init__(self)
     self.index = -1
     self.onABoat = False
     self.fadeTime = 0.5
     self.loadingSequence = None
     self.fishingGame = None
     self.xpBonus = 0
     self.goldBonus = 0
     self.showTutorial = False
     self._DistributedFishingSpot__dialog = None
     self.prevBaseCamParent = None
     self.prevCamPos = None
     self.prevCamHpr = None
     self.oldAvatarPos = None
Example #8
0
 def doneTaking(self):
     Lootable.doneTaking(self)
     self.requestExit()
     localAvatar.motionFSM.on()
     self.cr.interactionMgr.start()
Example #9
0
 def stopLooting(self):
     Lootable.stopLooting(self)
     if self.type != PiratesGlobals.ITEM_SAC:
         self.openAnim.setPlayRate(-1.0)
         self.openAnim.play()
 def startLooting(self, plunderList, itemsToTake = 0, timer = 0, autoShow = False, customName = None):
     self.acceptInteraction()
     if self.openSound:
         self.openSound.play()
     
     Lootable.startLooting(self, plunderList, itemsToTake, timer = timer, autoShow = autoShow, customName = customName)
 def startLooting(self, plunderList, itemsToTake = 0, timer = 0, autoShow = False, customName = None):
     Lootable.startLooting(self, plunderList, itemsToTake, timer = timer, autoShow = autoShow, customName = PLocalizer.FoundFishing)
     if self.fishingGame and not self.fishingGame.gui.resultsScreen.isHidden():
         localAvatar.guiMgr.inventoryUIManager.hidePlunder()