Esempio n. 1
0
    def scenario(self):
        print "OH NOES! Your rudder ajam!"

        response = self.ask('What do?',
                            ['Use a stick to clear the clutter', 'Improvise'])

        if response == 0:
            print "Your stick only added to the jam. [-15 health]"
            carmine.change(hp=-15)
        elif response == 1:
            print" IMPROV!"
        else:
            self.error()
    def sail(self):
        """Runs every event, or the distance, to the town and adjusts according
        to the speed set by the player."""

        events = event.Library()

        # To do, figure out better way to manage speed
        for i in xrange(0, self.distance+carmine.speed):
            # Each river event costs the player's ship 5hp for wear & tear
            # in post-apocalyptic environments (everything is post-
            # apocalyptic... I think)
            carmine.change(hp=-5, place="River")
            tools.clear(5)
            print 'Day {} - Health: {}\n'.format(carmine.day,
                                                 carmine.hp)
            events.generate(self.odds)

            tools.next()
            carmine.change(day=1)

        carmine.change(place=self.name)
        tools.clear()
        print 'Day {} - Health: {}\n'.format(carmine.day, carmine.hp)
        result = self.enter()
        carmine.change(day=1)

        return result
Esempio n. 3
0
    def sail(self):
        """Runs every event, or the distance, to the town and adjusts according
        to the speed set by the player."""

        events = event.Library()

        # To do, figure out better way to manage speed
        for i in xrange(0, self.distance + carmine.speed):
            # Each river event costs the player's ship 5hp for wear & tear
            # in post-apocalyptic environments (everything is post-
            # apocalyptic... I think)
            carmine.change(hp=-5, place="River")
            tools.clear(5)
            print 'Day {} - Health: {}\n'.format(carmine.day, carmine.hp)
            events.generate(self.odds)

            tools.next()
            carmine.change(day=1)

        carmine.change(place=self.name)
        tools.clear()
        print 'Day {} - Health: {}\n'.format(carmine.day, carmine.hp)
        result = self.enter()
        carmine.change(day=1)

        return result
Esempio n. 4
0
    def scenario(self):
        print "You arrive at a fork in the river..."

        response = self.ask('Which way?', ['Left', 'Right'])

        if response == random.randint(0, 1):
            print "The water is a bit rough, but luckily you manage to get \
                   through safely..."
        else:
            things = ['Birds', 'Monkey', 'Dicks', 'Narwhals', 'Unicorns']
            i = random.randint(0, len(things)-1)

            print "{} attacked your ship D: [-10 health]".format(things[i])
            carmine.change(hp=-10)
Esempio n. 5
0
    def scenario(self):
        printer.display("OH NOES! SNAKES ARRIVED ON YOUR BOAT!")

        response = self.ask('How to unsnake the boat?',
                            ['Yell at them', 'Eat them'])

        if response == 0:
            print "You yell as loud as you can, the snakes don't understand \
                   fleshbag. [-10 health]"
            carmine.change(hp=-10)
        elif response == 1:
            print "You ate ALL the snakes, looks like you wiggled your way \
                   out of this one. [+2 food]"
            carmine.change(food=2)
        else:
            self.error()
Esempio n. 6
0
    def scenario(self):
        print "You pass by a ship that has been utterly rekt..."

        response = self.ask('Do you check the wreckage?', ['Yes', 'No'])

        if response == 0:
            if random.randint(0, 1) == 1:
                i = random.randint(1, 5)
                print "Hooray! Some scrap! [+{} scrap]".format(i)
            else:
                print "SEA ZOOOMBIES!!!"
                if random.randint(0, 1) == 1:
                    print "RUUUUUN [+1 day] [-5 health]"
                    carmine.change(day=1, hp=-5)
                else:
                    print "Ya got overwhelmed a bit [+2 days] [-15 health]"
                    carmine.change(day=2, hp=-15)
Esempio n. 7
0
    def scenario(self):
        print "OH NOES! Your entire crew was infected by the virus of \
               poor grammar."
        print "Generic Crewmun: \"Your going to die captain!\""

        response = self.ask('How win?',
                            ['Teach proper grammer',
                             'Revert ship to text talk'])

        if response == 0:
            # GET RID OF HARD CODE NAOW!
            print "It took some time, but eventually every one learned there \
                   grammar again... eventually [+1 day] [-5 health]"

            carmine.change(day=1, hp=-5)
        elif response == 1:
            # Again, self, not this, you're better than this...
            print "The grammar nazis invaded. [-20 health]"
            carmine.change(hp=-20)
        else:
            self.error()
Esempio n. 8
0
    def scenario(self):
        print "Are you properly disposing of your compostable waste?"

        response = self.ask('Your answer?', ['No...', 'LIE!'])

        if response == 1:
            print '50/50 shot...'
            tools.next()
            if random.randint(0, 1) == 1:
                response = 2

        if response == 2:
            print 'Uh-huh... we need to have a chat [+2 days] [-10 health]'
            carmine.change(hp=-10, day=2)
        elif response == 1:
            print 'Alright then, carry on...'
        elif response == 0:
            print 'Well, in this part of the river we compost, let me tell \
                   you why... [+1 day] [-5 health]'
            carmine.change(hp=-5, day=1)
        else:
            self.error()