def hangout(): game.game_state.time = game.game_state.time + datetime.timedelta( hours=1) utils.update_infection(0.025 * self.dave.progression) utils.update_willpower("blue", weight=1 - self.dave.progression / 4)
def meme_think(): if self.encounter_meme.infected == 1: if self.encounter_meme.is_infected: utils.update_infection(0.015) else: #utils.update_infection(0.1) utils.update_willpower("blue", weight=10) self.encounter_meme.infected = 2
def infect(time): global willpower, infection willpower = (game.game_state.get_stat('willpower') - red_willpower) * willpower_scale infection = game.game_state.get_stat('infection') if willpower > 0: idif = ispeed * time * (infection - willpower) / datetime.timedelta(hours=1) else: idif = ispeed * time * (infection) / datetime.timedelta(hours=1) if infection > 0: utils.update_infection(idif)
def exameme(): game.game_state.show_message("The note reads:") game.game_state.show_message(self.encounter_meme.contents) if self.encounter_meme.infected == 0: self.encounter_meme.infected = 1 if self.encounter_meme.is_infected: utils.update_infection(0.01) else: utils.update_willpower("blue", weight=10) #utils.update_infection(0.1) pass inspect_meme = game.Dialogue("A crumpled note.") startsit = inspect_meme.start() @startsit.situation( "Try to forget it", response=ColorString(("It was probably nothing. ", "white"), ( "The Government warned against reading notes lying on the ground anyway.", "red")), color="red") def meme_forget(): #nothing happens pass #this should be green when infected, but was changed to white for testing purposes, when uninfected, it should be blue, also description should change @startsit.situation( "Think about it", response=ColorString( ("It makes no sense at all. Not in the slightest. Yet... ", "blue"), ("You feel something moved in your very being.", "green")), color="white") def meme_think(): if self.encounter_meme.infected == 1: if self.encounter_meme.is_infected: utils.update_infection(0.015) else: #utils.update_infection(0.1) utils.update_willpower("blue", weight=10) self.encounter_meme.infected = 2 #this should be yellow and without "feeling safer" when not infected @startsit.situation( "Destroy it", response= "You ripped the note apart and threw it away. You feel a bit safer.", color="magenta") def meme_destroy(): if self.encounter_meme.is_infected: utils.update_infection(-0.01) self.encounter_meme.move(void)
def meme_destroy(): if self.encounter_meme.is_infected: utils.update_infection(-0.01) self.encounter_meme.move(void)
def art(): utils.update_infection(0.025 * self.dave.progression) if self.dave.progression == 3: utils.update_infection(0.025)
def unmasked(): utils.update_infection(0.15) game.game_state.glasses.type = game.Alignment.INDEPENDENT game.game_state.set_stat('truth', True) bedroom.has_lens = False dream.exit()