Exemple #1
0
 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)
Exemple #2
0
                    def gschool_red():
                        self.friendship -= 1
                        utils.update_willpower('red', weight=6, time=datetime.timedelta(minutes=5))

                        @gschool_red.situation("You've just got to listen to them. They only want us to do well on the test.", response="Florence: Right. Thanks I guess. Uhhh. I've got to go now.", color='red')
                        def gschool_red_red():
                            self.friendship -= 2
                            utils.update_willpower('red', weight=6, time=datetime.timedelta(minutes=5))
                            dialogue.exit()

                        @gschool_red.situation("Yeah. It'd be nice to take a break sometimes.", response="Florence: I'd love to just not go to school sometimes, but my parents won't let me.", closable=l)
                        def gschool_red_white():
                            self.friendship += 1
                            utils.update_willpower('white', weight=3, time=datetime.timedelta(minutes=5))

                            @gschool_red_white.situation("Oh come on. Surely you wouldn't just do something like that? That's wrong.", response="Florence: Right. I didn't mean it that way. Sorry. I should be off.", color='red')
                            def gschool_red_white_red():
                                self.friendship -= 2
                                utils.update_willpower('red', weight=6, time=datetime.timedelta(minutes=5))
                                dialogue.exit()

                            @gschool_red_white.situation("I feel that. My parents wouldn't approve of me doing so either.", response="Florence: Yeah. At least it's our last month in here.", closable=l)
                            def gschool_red_white_white():
                                self.friendship += 1
                                utils.update_willpower('white', weight=3, time=datetime.timedelta(minutes=5))

                        @gschool_red.situation("Sometimes it's better to sleep through it.", response=ColorString(("Ugh yes. It's so boring. ", 'cyan'), "But", (" at least ", 'cyan'), "I", (" pretend to ", 'cyan'), "pay attention", (" so that the teachers don't get angry.", 'cyan')), color='blue', closable=l)
                        def gschool_red_blue():
                            self.friendship += 1
                            utils.update_willpower('blue', weight=3, time=datetime.timedelta(minutes=5))
Exemple #3
0
 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
Exemple #4
0
                    def gschool_none():
                        self.friendship += 1
                        utils.update_willpower('white', weight=6, time=datetime.timedelta(minutes=5))

                        @gschool_none.situation("...", response="Florence: ... I've got to go now. See you later.")
                        def gschool_none_awkward():
                            self.friendship -= 1
                            dialogue.exit()
Exemple #5
0
                def rock():
                    if infection < 4 / 6 * needed:
                        # utils.update_infection(0.08)
                        allow_wakeup()
                        return

                    utils.update_willpower(ichange,
                                           weight=1,
                                           time=datetime.timedelta(hours=1))

                    @rock.situation(
                        c('Leave from the airlock'),
                        response=
                        c('You start to walk moving towards the airlock door. Behind you. Lies. Lying teacher opens the window open. The school does not want good for you. The airlock is full of water. You will escape. We will make sure of that. You are one of Us now. We do not leave ours behind.'
                          ),
                        closable=False)
                    def water():
                        if infection < 5 / 6 * needed:
                            # utils.update_infection(0.09)
                            allow_wakeup()
                            return

                        utils.update_willpower(
                            ichange,
                            weight=1,
                            time=datetime.timedelta(hours=1))

                        @water.situation(
                            c('Swim trough the window outside'),
                            response=
                            c('We swim to the window. It the window is far away. It does not matter. We will reach it. And we do. We swim out of the window. Outside the airlock is air. We are on the ground now. Our glasses break. No matter. The glasses only limit Us. We need to get rid of them. Take them off. Do it. Do it for Us.'
                              ),
                            closable=False)
                        def glasses():
                            if infection < 6 / 6 * needed:
                                # utils.update_infection(0.1)
                                allow_wakeup()
                                return

                            utils.update_willpower(
                                ichange,
                                weight=1,
                                time=datetime.timedelta(hours=1))

                            @glasses.situation(
                                c('Take them off. We know we can. Do it.'),
                                response=ColorString((
                                    'We take our glasses off. Finally. We see the world as it is. No more tyranny from the government. They should not limit Us. They will not limit Us anymore. We will put a stop to this. The stone rock. It glows bright green. Now wake up. We have things to do. Time is precious. We must do it now.',
                                    'green')),
                                closable=False)
                            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()
Exemple #6
0
 def lesson_attention():
     holder.sadness = max(0, holder.sadness - 1)
     if game.game_state.time.hour < 8:
         utils.spend_stats(startTime - game.game_state.time,
                           game.EnergyCost.NONE)
         timePoint = startTime
     else:
         timePoint = game.game_state.time
     utils.spend_stats(endTime - timePoint, game.EnergyCost.MENTAL)
     utils.update_willpower(False, time=(endTime - timePoint))
     lesson_done()
Exemple #7
0
        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)
Exemple #8
0
                        def gschool_red_white():
                            self.friendship += 1
                            utils.update_willpower('white', weight=3, time=datetime.timedelta(minutes=5))

                            @gschool_red_white.situation("Oh come on. Surely you wouldn't just do something like that? That's wrong.", response="Florence: Right. I didn't mean it that way. Sorry. I should be off.", color='red')
                            def gschool_red_white_red():
                                self.friendship -= 2
                                utils.update_willpower('red', weight=6, time=datetime.timedelta(minutes=5))
                                dialogue.exit()

                            @gschool_red_white.situation("I feel that. My parents wouldn't approve of me doing so either.", response="Florence: Yeah. At least it's our last month in here.", closable=l)
                            def gschool_red_white_white():
                                self.friendship += 1
                                utils.update_willpower('white', weight=3, time=datetime.timedelta(minutes=5))
Exemple #9
0
                    def gtest_yeah():
                        self.friendship += 1

                        if self.close_friendship > 3:
                            game.show_message(ColorString(("Florence: But then again. What even happens in the city? Do I want to go there? I've never heard from anyone who did.", 'blue')))
                            self.friendship += 1
                            utils.update_willpower('white', weight=12, time=datetime.timedelta(minutes=5))

                        @gtest_yeah.situation("I'm going.", response="Florence: Well, that's what everyone thinks. But they never take everyone. Someone always stays behind.", closable=l)
                        def gtest_yeah_going():
                            pass

                        @gtest_yeah.situation("I'm not going.", response="Florence: Really? I thought everyone would want to go. At least they would try.", color='blue', closable=l)
                        def gtest_yeah_notgoing():
                            self.close_friendship += 2
                            self.friendship += 1
Exemple #10
0
                        def glasses():
                            if infection < 6 / 6 * needed:
                                # utils.update_infection(0.1)
                                allow_wakeup()
                                return

                            utils.update_willpower(
                                ichange,
                                weight=1,
                                time=datetime.timedelta(hours=1))

                            @glasses.situation(
                                c('Take them off. We know we can. Do it.'),
                                response=ColorString((
                                    'We take our glasses off. Finally. We see the world as it is. No more tyranny from the government. They should not limit Us. They will not limit Us anymore. We will put a stop to this. The stone rock. It glows bright green. Now wake up. We have things to do. Time is precious. We must do it now.',
                                    'green')),
                                closable=False)
                            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()
Exemple #11
0
 def gschool_red_blue():
     self.friendship += 1
     utils.update_willpower('blue', weight=3, time=datetime.timedelta(minutes=5))
Exemple #12
0
 def gschool_red_white_red():
     self.friendship -= 2
     utils.update_willpower('red', weight=6, time=datetime.timedelta(minutes=5))
     dialogue.exit()
Exemple #13
0
 def rschool():
     self.close_friendship -= 1
     utils.update_willpower('red', weight=3, time=datetime.timedelta(minutes=5))
Exemple #14
0
    def tree():
        if infection < 1 / 6 * needed:
            # utils.update_infection(0.05)
            allow_wakeup()
            return

        utils.update_willpower(ichange,
                               weight=1,
                               time=datetime.timedelta(hours=1))

        @tree.situation(
            c('Hurry to the school class'),
            response=
            c('The watch time. It is late evening. You should not be going to school. You hurry to school even though you should not. Everyone is waiting for you at school. You come late to the school. The school teacher is not acting well.'
              ),
            closable=False)
        def classroom():
            if infection < 2 / 6 * needed:
                # utils.update_infection(0.06)
                allow_wakeup()
                return

            utils.update_willpower(ichange,
                                   weight=1,
                                   time=datetime.timedelta(hours=1))

            @classroom.situation(
                c('Confront argue with the teaching school teacher'),
                response=
                c('The teacher is walking, you are walking. The teacher makes you go to the airlock. The airlock is not in the school. The school is full of lies. The airlock is in your home house wardrobe in the past.'
                  ),
                closable=False)
            def airlock():
                if infection < 3 / 6 * needed:
                    # utils.update_infection(0.07)
                    allow_wakeup()
                    return

                utils.update_willpower(ichange,
                                       weight=1,
                                       time=datetime.timedelta(hours=1))

                @airlock.situation(
                    c('Open the air airlock lock'),
                    response=
                    c('The wardrobe. In the home house. There is an airkey to unlock the airlock. In the wardrobe. You unlock the airlock. There is a small stone rock in the airlock. The small stone rock glows a color. It is the color of unity. You eat the small stone rock. Join Us. Eventually everyone will.'
                      ),
                    closable=False)
                def rock():
                    if infection < 4 / 6 * needed:
                        # utils.update_infection(0.08)
                        allow_wakeup()
                        return

                    utils.update_willpower(ichange,
                                           weight=1,
                                           time=datetime.timedelta(hours=1))

                    @rock.situation(
                        c('Leave from the airlock'),
                        response=
                        c('You start to walk moving towards the airlock door. Behind you. Lies. Lying teacher opens the window open. The school does not want good for you. The airlock is full of water. You will escape. We will make sure of that. You are one of Us now. We do not leave ours behind.'
                          ),
                        closable=False)
                    def water():
                        if infection < 5 / 6 * needed:
                            # utils.update_infection(0.09)
                            allow_wakeup()
                            return

                        utils.update_willpower(
                            ichange,
                            weight=1,
                            time=datetime.timedelta(hours=1))

                        @water.situation(
                            c('Swim trough the window outside'),
                            response=
                            c('We swim to the window. It the window is far away. It does not matter. We will reach it. And we do. We swim out of the window. Outside the airlock is air. We are on the ground now. Our glasses break. No matter. The glasses only limit Us. We need to get rid of them. Take them off. Do it. Do it for Us.'
                              ),
                            closable=False)
                        def glasses():
                            if infection < 6 / 6 * needed:
                                # utils.update_infection(0.1)
                                allow_wakeup()
                                return

                            utils.update_willpower(
                                ichange,
                                weight=1,
                                time=datetime.timedelta(hours=1))

                            @glasses.situation(
                                c('Take them off. We know we can. Do it.'),
                                response=ColorString((
                                    'We take our glasses off. Finally. We see the world as it is. No more tyranny from the government. They should not limit Us. They will not limit Us anymore. We will put a stop to this. The stone rock. It glows bright green. Now wake up. We have things to do. Time is precious. We must do it now.',
                                    'green')),
                                closable=False)
                            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()