def _test(): def foo(): gAchievements[0].announceCompletion() gAchievements[1].announceCompletion() gAchievements[2].announceCompletion() def foo2(): gAchievements[3].announceCompletion() gAchievements[4].announceCompletion() gAchievements[5].announceCompletion() bs.netTimer(3000, foo) bs.netTimer(7000, foo2)
def endGame(self): self._timer.stop() results = bs.TeamGameResults() if self._won: bs.playMusic('Victory') self._awardAchievement( self.settings.get("preset") + " Boss Fight completed") elapsedTime = bs.getGameTime() - self._timer.getStartTime() self.cameraFlash() bs.playSound(self._winSound) for team in self.teams: team.celebrate() # woooo! par-tay! results.setTeamScore(team, elapsedTime) else: self._boss.finalCelebrate() self.fadeToRed() bs.playMusic(None) bs.netTimer(3000, bs.WeakCall(self.end, results))