def playerDied(self, pke): writeReport( self, False, didQuit = pke.didQuit ) if not pke.didQuit: # if we quit, we just confirmed in a menu self.main.query( HitEnterWidget ) self.done = True self.result = False
def playerWon(self): from plot import displayOutro writeReport( self, True, self.player.itemTypeCount( 'spellbook' ) ) displayOutro( self, self.player.itemTypeCount( 'spellbook' ) ) self.done = True self.result = False