Exemplo n.º 1
0
 def __init__(self):
     self.name = "Chupacabra"
     self.health = 10
     self.damage = 10
     self.xp = 100
     super().__init__()
     if randint(0, 1) < 1:
         self.items.append(items.Dollar())
     elif randint(0, 3) < 1:
         self.items.append(items.ButterKnife())
Exemplo n.º 2
0
 def __init__(self):
     self.name = "Scrub"
     self.health = 5
     self.damage = 3
     self.xp = 100
     super().__init__()
     if randint(0, 1) < 1:
         self.items.append(items.Dollar())
     if randint(0, 3) < 1:
         self.items.append(items.Ruler())
Exemplo n.º 3
0
 def __init__(self):
     self.name = "Janitor"
     self.health = 50
     self.damage = 15
     self.xp = 350
     super().__init__()
     if randint(0, 1) < 1:
         self.items.append(items.Dollar())
     if randint(0, 1) < 1:
         self.items.append(items.Loot("rat trap", 15))
     if randint(0, 1) < 1:
         self.items.append(items.Loot("pack of cigarettes", 25))
     if randint(0, 1) < 1:
         self.items.append(items.Loot("kratom pills", 50))
     if randint(0, 1) < 1:
         self.items.append(
             items.Implement("string mop", "a stinky, sloppy, damp mess", 5,
                             5, 10))
Exemplo n.º 4
0
 def __init__(self):
     self.name = "Teacher"
     self.health = 20
     self.damage = 10
     self.xp = 200
     super().__init__()
     if randint(0, 4) < 1:
         self.items.append(items.Diaper())
     if randint(0, 4) < 1:
         self.items.append(items.Dollar())
     if randint(0, 5) < 1:
         self.items.append(
             items.Implement("ball point pen",
                             "you could poke somebody's eye out", 3, 25,
                             10))
     if randint(0, 4) < 1:
         self.items.append(items.Twenty())
     if randint(0, 5) < 1:
         self.items.append(items.Ruler())
Exemplo n.º 5
0
 def __init__(self, x, y):
     super().__init__(x, y, items.Dollar(1))
Exemplo n.º 6
0
    def __init__(self, x, y):
        self.x = x
        self.y = y
        self.description = "room"
        self.items = [] 

        # environmental hazards here
        # gas 
        global gas_placed
        self.gas = None 
        if gas_placed == 0:
            if randint(0, 30) == 1:
                self.gas = 1 
                gas_placed = 1

        # shitic
        global fartsmell_placed
        self.fartsmell = None 
        if fartsmell_placed == 0:
            if randint(0, 30) == 1:
                self.fartsmell = 1 
                fartsmell_placed = 1


        #enemy generation; only one per tile
        r = randint(0,100)
        if r < 5:
            self.enemy = enemies.Headmaster()
        elif r < 10:
            self.enemy = enemies.Chupacabra()
        elif r < 20:
            self.enemy = enemies.Administrator()
        elif r < 35:
            self.enemy = enemies.Teacher()
        elif r < 43:
            self.enemy = enemies.Bully()
        elif r < 60:
            self.enemy = enemies.Scrub()
        if self.has_enemy():
            #25% chance of automatic aggro
            self.enemy.is_aggro = 1 if (randint(0,4) == 1) else None

        #trader generation
        global trader_placed
        if trader_placed == 0:
            #uncomment these two lines to put a trader in starting tile
#            if isinstance(self, StartTile):
#                self.npc = npcs.Trader("Arthur", "wily little schemer")
            # and comment the next 8 lines to prevent trader from being placed outside starting tile
            r = randint(0,40) 
            if r == 0:
                self.npc = npcs.Trader("Arthur","wily little schemer")
                trader_placed = 1
                # for debugging only 
                # print("trader at",self.x,self.y)
            elif r == 1:
                self.npc = npcs.Trader("Tristan","twirling fairy prince with pretty lace stockings")
                trader_placed = 1

        #random NPCs 
        r = randint(0, 40)
        if r == 0:
            self.npc = npcs.Ruby("Ruby", "babbling brook of information")
        elif r == 1:
            self.npc = npcs.Rando("Oliver Howard", "shifty middle school edgelord")
 
        #powerup generation
        r = randint(0, 100)
        if r<10:
            self.items.append(items.Burrito())
        elif r < 25:
            self.items.append(items.Taco())
        elif r < 45:
            self.items.append(items.Chips())
        elif r < 55:
            self.items.append(items.GranolaBar())
        elif r < 65:
            self.items.append(items.StringCheese())

        #weapon generation
        r = randint(0, 200)
        if r < 4:
            self.items.append(items.MagicMace())
        elif r < 8:
            self.items.append(items.ClubMace())
        elif r < 13:
            self.items.append(items.Mace())
        elif r < 20:
            self.items.append(items.ButterKnife())
        elif r < 23:
            self.items.append(items.Machete())
        elif r < 27:
            self.items.append(items.Stiletto())
        elif r < 30:
            self.items.append(items.Ruler())
        elif r < 33:
            self.items.append(items.Scissors())

        #loot generation
        #loot generation
        r = randint(0,100)
        if r<1:
            self.items.append(items.Loot("Deez Nutz for President poster",1))
        if r<2:
            self.items.append(items.Loot("embroidery kit",3))
        if r<4:
            self.items.append(items.Iphone())
        elif r < 6:
            self.items.append(items.Laptop())
        elif r < 11:
            self.items.append(items.Dollar())
        elif r < 18:
            self.items.append(items.Twenty())
        elif r < 20:
            self.items.append(items.Diaper())
        elif r < 21:
            self.items.append(items.GasNeutralizer())
        elif r < 22:
            self.items.append(items.DustMask())
        elif r < 23:
            self.items.append(items.Loot("greasy yoga mat",1))
        elif r < 24:
            self.items.append(items.Loot("small boy's tutu",1))
        elif r < 28:
            self.items.append(items.Loot("beat-up chromebook",50))
        elif r < 29:
            self.items.append(items.Loot("Words We Will Not Use hardcopy",0))
        elif r < 30:
            self.items.append(items.Loot("spray bottle full of Rozzle",5))
        elif r < 31:
            self.items.append(items.Loot("Student Green Team manual",0))
        elif r < 35:
            self.items.append(items.Loot("prescription for Ritalin",100))
Exemplo n.º 7
0
	def __init__(self, x, y):
		room_items = [items.Dollar(), items.Dollar(), items.PuzzleClueTwo()]
		ItemsRoom.__init__(self, x, y, room_items)