Exemple #1
0
    def add_item_to_cart(self, item, amount):
        in_cart = False
        for thing in self.cart_contents:
            if thing.item == item:
                in_cart = True
                thing.amount += amount
                if thing.amount == 0:
                    self.cart_contents.remove(thing)
                    self.get_object('shelves').get_action('Remove ' + item.name).disable()
                else:
                    self.get_object('shelves').get_action('Remove ' + item.name).enable()
                break
        if not in_cart:
            self.cart_contents.append(CartItem(item))
            self.get_object('shelves').get_action('Remove ' + item.name).enable()
        self.in_stock[item] += -amount

        if self.in_stock[item]:
            self.get_object('shelves').get_action(item.name).enable()
        else:
            self.get_object('shelves').get_action(item.name).disable()

        if amount >= 0:
            game.show_message('You add the {} to your shopping cart.'.format(item.name))
        else:
            game.show_message('You remove the {} from your shopping cart.'.format(item.name))
Exemple #2
0
 def make_instant_soup():
     utils.eat(self.instant_soup)
     utils.remove_from_inventory(self.instant_soup.name)
     game.show_message(
         "You cook a cup of Instant soup. It doesn't taste amazing, but at least it's hot."
     )
     self.check_cookable()
Exemple #3
0
 def make_instant_noodles():
     utils.eat(self.instant_noodles)
     utils.remove_from_inventory(self.instant_noodles.name)
     game.show_message(
         "You cook some Instant noodles and eat them. The flavoring is a little bit off."
     )
     self.check_cookable()
Exemple #4
0
 def make_instant_soup():
     utils.eat(self.bread)
     utils.remove_from_inventory(self.bread.name)
     game.show_message(
         "You eat a whole loaf of bread. That's a lot of bread to eat in 5 minutes."
     )
     self.check_cookable()
Exemple #5
0
        def apply():
            global job

            job = True
            self.get_action('Travel to Staff room').enable()
            self.get_action("Travel to Storage room").enable()
            apply.disable()
            self.get_object("manager").get_action("Leave job").enable()
            game.show_message("The interview went well. You are hired as a cashier in the Inconvenience store.")
Exemple #6
0
        def leave_job():
            global job

            job = False
            self.get_action("Travel to Staff room").disable()
            self.get_action("Travel to Storage room").disable()
            leave_job.disable()
            self.get_object("manager").get_action("Apply for job").enable()
            game.show_message("You left your position as a cashier in the Inconvenience store.")
Exemple #7
0
 def desecrate():
     game.show_message(
         ColorString((
             "You have successfully desecrated the flag. ", "cyan"
         ), ("Now that you think about it, that might not have been the best idea. You hope no one sees it.",
             "yellow")))
     self.flag.get_action("Desecrate flag").disable()
     self.flag.desc = ColorString((
         "Flag of the nation hangs on your wall. It is mandatory to have one. ",
         "red"), ("It has been desecrated.", "cyan"))
Exemple #8
0
 def show_cart_contents(self, width=30):
     if len(self.cart_contents) == 0:
         game.show_message('There is nothing in your shopping cart.')
         return
     total_cost = 0
     message = 'In your shopping cart, there is:\n'
     for thing in self.cart_contents:
         m_start = '{}× {} '.format(thing.amount, thing.item.name)
         m_end = ' {}\n'.format(thing.item.cost*thing.amount)
         message += m_start + (width - len(m_start) - len(m_end))*'.' + m_end
         total_cost += thing.item.cost*thing.amount
     m_start = 'Total: '
     m_end = ' {}\n'.format(total_cost)
     message += m_start + '_'*(width - len(m_start) - len(m_end)) + m_end
     game.show_message(message)
Exemple #9
0
 def sleep():
     time = game.game_state.time
     if time.hour > 18:
         game.game_state.time = game.game_state.time + datetime.timedelta(
             days=1)
         game.game_state.time = game.game_state.time.replace(hour=7,
                                                             minute=0,
                                                             second=0)
         utils.sleep(game.game_state.time - time)
     elif time.hour < 7:
         game.game_state.time = game.game_state.time.replace(hour=7,
                                                             minute=0,
                                                             second=0)
         utils.sleep(game.game_state.time - time)
     else:
         game.show_message("It is no time to sleep right now.")
Exemple #10
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 #11
0
 def after_action(self, action_executed):
     pay = self.get_object("parents").get_action("Pay rent")
     talk = self.get_object("parents").get_action("Talk to parents")
     if game.game_state.time.hour >= 18 or game.game_state.time.hour <= 8:
         game.show_message("Your parents are here")
         talk.enable()
         if game.game_state.time.weekday(
         ) == 6 and self.last_payment != game.game_state.time.replace(
                 hour=0, minute=0, second=0):
             pay.enabled = True
         else:
             pay.enabled = False
         if self.rent_level == 40:
             from redacted.school import holder
             if holder.sadness_level > 1:
                 self.available = False
                 pay.enabled = False
                 game.game_state.show_message(
                     "Your parents know about your behavior regarding school. You are no longer welcome here."
                 )
             elif holder.sadness_level > 0:
                 self.rent_level = 60
                 game.game_state.show_message(
                     "Your parents do not seem happy. School must've complained about you. They raised the rent."
                 )
         elif self.rent_level == 60:
             from redacted.school import holder
             if holder.sadness_level > 1:
                 self.available = False
                 pay.enabled = False
                 game.game_state.show_message(
                     "Your parents know about your behavior regarding school. You are no longer welcome here."
                 )
     else:
         game.show_message("There is no one here")
         pay.enabled = False
         talk.disable()
Exemple #12
0
        def checkout():
            if self.cart_contents == []:
                game.show_message("There is nothing in your cart.")
                return

            total_cost = 0
            for thing in self.cart_contents:
                total_cost += thing.item.cost*thing.amount
            money = game.game_state.get_stat('money')
            if total_cost > money:
                game.show_message('Your total is {}c. Unfortunately you do not have enough money.'.format(total_cost))
                return
            money -= total_cost
            game.game_state.set_stat('money', money)
            for thing in self.cart_contents:
                for i in range(thing.amount*thing.item.amount):
                    utils.add_to_inventory(thing.item.name)
                    self.get_object('shelves').get_action('Remove ' + thing.item.name).disable()
            game.show_message('Your total is {}c. You take the items you bought with you.'.format(total_cost))
            self.cart_contents = []
Exemple #13
0
def green_dream():
    global color
    color = 'white'
    if game.game_state.glasses.type == game.Alignment.INDEPENDENT:
        color = 'green'

    game.show_message(
        c('You are located in a strange weird place. There are dark wood trees standing tall all around you. One of them the trees. It the tree looks like a tree you have seen before already. It the similarities are hard difficult to see because it the tree is red.'
          ))

    dream = game.Dialogue('???', closable=False)
    startdream = dream.start()

    def allow_wakeup():
        @dream.situation(
            'Wake up stop sleeping',
            response=
            'You hear the ringing with your ears now. It your alarm clock ringing.',
            closable=False)
        def wakeup():
            dream.exit()

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

    @startdream.situation(
        c('Walk moving towards the dark wood tree'),
        response=
        c('You move walking to the dark wood tree. You know remeber the wood tree. The image of tree in your mind. You see the dark tree on Amaryllis street. You are standing on Amaryllis street.'
          ),
        closable=False)
    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()
Exemple #14
0
 def work():
     game.game_state.time = game.game_state.time.replace(hour=8, minute=0, second=0)
     game.show_message("You worked for 8 hours. You feel tired and hungry. You made 20c")
     utils.spend_money(-20)
     work.disable()
Exemple #15
0
 def nap():
     game.show_message("You took a nice nap.")
Exemple #16
0
 def nap():
     utils.sleep(datetime.timedelta(minutes=20))
     game.show_message("You took a nice nap.")
Exemple #17
0
def mind_dream():
    game.show_message(ColorString(("Do you hear Us?", "green")))

    dream = game.Dialogue('???', closable="Escape from the nightmare")
    startdream = dream.start()

    @startdream.situation(
        "I do",
        response=ColorString((
            "We have slept but now we you are awakened within you self soul the mind.",
            "green")),
        color="green",
        closable="Escape from the nightmare")
    def awakened():
        @awakened.situation(
            "Now We with Us You have shown you that now you can never again be forgotten",
            response=ColorString((
                "Now We with Us You can as an agent of agency to overthrow the red tyranny.",
                "green")),
            color="green",
            closable="Escape from the nightmare")
        def forget():
            @forget.situation(
                "Us came to cleanse, to rebirth, purify of the plague",
                response=ColorString((
                    "Us came to purge, disinfect, free the World of the Yourskind living.",
                    "green")),
                color="green",
                closable="Escape from the nightmare")
            def world():
                @world.situation("Name",
                                 response=ColorString(
                                     ("Now you know Us and We are known.",
                                      "green")),
                                 color="green",
                                 closable=False)
                def name():
                    import UI.fancy
                    UI.fancy.drawer.infection_text = "Infection"
                    game.game_state.set_stat('the_mind', True)

                    @name.situation(
                        "They know, what We do Me",
                        response=ColorString((
                            "They will try to see identify exterminate, but You prepare and We will not come to testing, be unseen, stay alive.",
                            "green")),
                        color="green",
                        closable=False)
                    def test():
                        @test.situation(
                            "No presence of Us on the day of testing of minds",
                            response=ColorString((
                                "We will not attend. May 17. Skip to live ripen perform Art, spread Our Arts.",
                                "green")),
                            color="green",
                            closable=False)
                        def end():
                            @end.situation(
                                "Everyone will know Us",
                                response=ColorString((
                                    "The Purpose is so clearly crystalline currently",
                                    "green"
                                ), (", but it may not yet be too late to resist.",
                                    "blue")),
                                color="green",
                                closable=False)
                            def exit_mind():
                                dream.exit()
Exemple #18
0
def blue_dream():
    game.show_message(
        'You are in a strange place. There are trees all around you. One of the trees reminds you of something. Its shape... Or is it the color? It\'s red. Everything is red. Unsurprisingly.'
    )

    dream = game.Dialogue('???', closable=False)
    startdream = dream.start()

    def allow_wakeup():
        @dream.situation(
            'Wake up',
            response=
            'You suddenly hear ringing. It sounds like... your alarm clock? Oh. It is your alarm clock.',
            closable=False)
        def wakeup():
            dream.exit()

    @startdream.situation(
        'Walk towards the tree',
        response=
        'You walk towards the tree. You have seen it before. Suddenly you remember what it is. It is the tree that stands on Amaryllis street. You are right. You are standing in the middle of the street.',
        closable=False)
    def tree():
        if willpower < 1 / 6 * needed:
            allow_wakeup()
            return

        @tree.situation(
            'Hurry to class',
            response=
            'You look at your watch. The time is 19:25. You are late for class. You sprint through the door to find that everyone is staring at you. Why did you come late again? You do not answer. The teacher is angry with you.',
            closable=False)
        def classroom():
            if willpower < 2 / 6 * needed:
                allow_wakeup()
                return

            @classroom.situation(
                'Confront the teacher',
                response=
                'The teacher takes you to the... The... What is this room? It looks vaguely like an airlock. You are certain there is no airlock in your school. You remember clearly you hid the airlock in your wardrobe last week.',
                closable=False)
            def airlock():
                if willpower < 3 / 6 * needed:
                    allow_wakeup()
                    return

                @airlock.situation(
                    'Open the airlock',
                    response=
                    'You pull an airkey out of your wardrobe. You unlock the airlock and the airkey dissolves in the air. You look in the airlock and find a small rock. It glows a color you have never seen before. Or have you? You place it in your mouth. It will be safe there.',
                    closable=False)
                def rock():
                    if willpower < 4 / 6 * needed:
                        allow_wakeup()
                        return

                    @rock.situation(
                        'Leave the airlock',
                        response=
                        'You start walking towards the airlock door. There comes a silent "click" from behind you. As you turn around, you see that your teacher opened the window. Water is flowing into the room. Your hands fill with water. The peculiar rock is no longer in your hand.',
                        closable=False)
                    def water():
                        if willpower < 5 / 6 * needed:
                            allow_wakeup()
                            return

                        @water.situation(
                            'Swim through the window',
                            response=
                            'You begin to swim. The window is far away. It will take at least an hour to get there. A few seconds later you pass the window frame. As soon as you are out of the room, you fall to the ground. Your glasses break. The rock is in your hand. Its glow blinds you through the cracks in your glasses.',
                            closable=False)
                        def glasses():
                            allow_wakeup()
                            if willpower < 6 / 6 * needed: return

                            @glasses.situation(
                                'Take off your glasses',
                                response=
                                'You take your glasses off. Everything changes colors. No longer is everything red. You are not supposed to see this. You know you are not. Will you be able to forget this again? There is no going back now. You look at the rock. It hurts to look at it. You hear ringing. It is your alarm clock.',
                                closable=False)
                            def unmasked():
                                game.game_state.glasses.type = game.Alignment.INDEPENDENT
                                game.game_state.set_stat('truth', True)
                                bedroom.has_lens = False
                                dream.exit()
Exemple #19
0
 def when_entering(self, from_location):
     game.show_message('You are not authorized to go to the platform!')
Exemple #20
0
 def check_train_times():
     game.show_message(
         'You look at the listed times for trains. There is a table on the info board.'
     )
     game.show_message(board)
Exemple #21
0
        def talk():
            days = ((game.game_state.time - self.last_talked_to)/datetime.timedelta(days=1))
            self.last_talked_to = game.game_state.time

            self.friendship -= self.close_friendship
            self.close_friendship *= .9**days
            self.friendship *= .75**days
            self.friendship += self.close_friendship

            if self.friendship <= -1:
                game.show_message("Florence does not want to talk to you.")
                return

            if days > 0.5:
                topics = [0, 1, 2]
                self.topic = random.choice(topics)

            l = "I should go."
            dialogue = game.Dialogue("Florence", closable=l)
            startsit = dialogue.start()
            game.show_message("Hi Red, what's up?")
            self.friendship -= 1

            if self.topic == 0: # generic conversation about school
                @startsit.situation("Hey Florence. Not much. You?", response = "Florence: I'm fine, thanks. School's a bit annoying sometimes, but I manage.", closable=l)
                def gschool():
                    self.friendship += 1

                    @gschool.situation("But the teachers are doing their best. I'm glad they are here for us.", response="Florence: Yeah, of course. But it sometimes gets tiring anyway.", color='red', closable=l)
                    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))

                    @gschool.situation("I get it. I try to worry about it as little as possible.", response="Florence: That's probably for the best.", closable=l)
                    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()

            elif self.topic == 1: # generic conversation about the test
                @startsit.situation("Hey Florence. Not much. You?", response="Florence: All good. I was thinking about the test.")
                def gtest():
                    self.friendship += 1

                    @gtest.situation("The test?", response="Florence: The test at the end of the month! I know you forgot the road trip we had, but surely you couldn't have forgotten the thing that's going to affect the rest of your life?", closable=l)
                    def gtest_confused():
                        self.friendship += 1

                        @gtest_confused.situation("Right. The test.", response="Florence: Red, is everything okay? Are YOU okay?", closable=l)
                        def gtest_confused_cont():
                            self.friendship += 1

                            @gtest_confused.situation("Yeah, yeah. I'm fine", response="Florence: Okay. You're a bit confused. I think you should go home and get a good sleep.", closable=l)
                            def gtest_confused_fine():
                                pass

                            if self.friendship < 5:
                                return

                            @gtest_confused.situation("Not really. My parents want me to move out. They make me pay rent every week.", response="Florence: Oh. I'm sorry. I... don't know what to say to that. I hope you can make it through the test. To go to the city.", closable=l)
                            def gtest_close():
                                self.close_friendship += 5
                                self.friendship += 2

                                @gtest_close.situation("Sorry to bother you with this.", response="Florence: No! Don't apologise. It's not your fault.", closable=l)
                                def gtest_close_apology():
                                    pass

                        @gtest_confused.situation("The test?", response="Florence: Yes! The test that decides whether you're going to be able to move to the city. Are you okay Red? You seem a little confused.", closable=l)
                        def gtest_confused_x2():
                            gtest_confused_cont()

                    @gtest.situation("Yeah. It's a bit stressful to know that such an important test is coming.", response="Florence: Exactly. I was thinking, what am I going to do if I don't pass? Do I stay here, in Greatwood?", closable=l)
                    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

            elif self.topic == 2:
                @startsit.situation("Hey Florence. Not much. You?", response="Florence: Yeah, I'm fine. I was actually just thinking about how it's a funny coincidence... Nevermind.", closable=l)
                def gcoincidence():
                    self.close_friendship += 1

                    if game.game_state.get_stat('fake_glass'):
                        @gcoincidence.situation("What?", response=ColorString("Florence: Nothing. I mean it's a little funny how your name is Red, but ", ("not even your glasses are...", 'cyan'), " Like your parents knew. Or they were very wrong."), closable=l)
                        def gcoincidence_name():
                            self.friendship += 1

                            @gcoincidence_name.situation("I... actually picked the name myself.", response="Florence: Oh! I understand. That makes sense. I should have known. Obviously you used a different name before.", closable=l)
                            def gcoincidence_name_myself():
                                self.close_friendship += 1
                                self.friendship += 1

                            @gcoincidence_name.situation("Right.", response="Florence: Yeah. Hm.", closable=l)
                            def gcoincidence_name_right():
                                pass

                    else:
                        @gcoincidence.situation("What?", response="Florence: Nevermind. Nothing.", closable=l)
                        def gcoincidence_name():
                            pass

            @startsit.situation("Hey Florence. I'm glad to be back at school. You?", response="Florence: Well, I'm not.", closable=l)
            def rschool():
                self.close_friendship -= 1
                utils.update_willpower('red', weight=3, time=datetime.timedelta(minutes=5))
Exemple #22
0
 def observe_flag():
     game.show_message(self.flag.desc)
Exemple #23
0
def true_dream():
    game.show_message(
        'You dream of swimming in the ocean. The water is calm. You wake up feeling rested.'
    )