-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathitems.py
128 lines (101 loc) · 2.93 KB
/
items.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
from random import randint
from player import *
class Item:
def __init__(self, name, mindamage, maxdamage, healval, amount):
self.name = name
self.mindamage = mindamage
self.maxdamage = maxdamage
self.healval = healval
self.amount = amount
def __str__(self):
return f"{self.name}"
class Light_HP_Potion(Item):
def __init__(self):
super().__init__("Light HP Potion🧪", 0, 0, 5, 1)
def __str__(self):
return f"{self.name}"
class Medium_HP_Potion(Item):
def __init__(self):
super().__init__("Medium HP Potion🧪", 0, 0, 15, 1)
def __str__(self):
return f"{self.name}"
class Large_HP_Potion(Item):
def __init__(self):
super().__init__("Large HP Potion🧪", 0, 0, 30, 1)
def __str__(self):
return f"{self.name}"
class Mega_HP_Potion(Item):
def __init__(self):
super().__init__("Mega HP Potion🧪", 0, 0, 50, 1)
def __str__(self):
return f"{self.name}"
class Full_HP_Potion(Item):
def __init__(self):
super().__init__("Full HP Potion🧪", 0, 0, 150, 1)
def __str__(self):
return f"{self.name}"
class Chicken(Item):
def __init__(self):
super().__init__("Chicken🍗", 0, 0, 15, 1)
def __str__(self):
return f"{self.name}"
class Sword(Item):
def __init__(self):
super().__init__("Sword⚔️", 5, 20, 0, 1)
def __str__(self):
return f"{self.name}"
class Dagger(Item):
def __init__(self):
super().__init__("Dagger🗡️", 2, 10, 0, 1)
def __str__(self):
return f"{self.name}"
class Kitchen_Knife(Item):
def __init__(self):
super().__init__("Kitchen Knife🔪", 2, 15, 0, 1)
def __str__(self):
return f"{self.name}"
class Bow(Item):
def __init__(self):
super().__init__("Bow🏹", 3, 12, 0, 1)
def __str__(self):
return f"{self.name}"
class Spiked_Arrow_Bow(Item):
def __init__(self):
super().__init__("Spiked Arrow Bow🏹", 4, 15, 0, 1)
def __str__(self):
return f"{self.name}"
class Baseball_Bat(Item):
def __init__(self):
super().__init__("Baseball Bat🏏", 2, 10, 0, 1)
def __str__(self):
return f"{self.name}"
class Spiked_Baseball_Bat(Item):
def __init__(self):
super().__init__("Spiked Baseball Bat🏏", 3, 12, 0, 1)
def __str__(self):
return f"{self.name}"
class BB_Gun(Item):
def __init__(self):
super().__init__("BB Gun🔫", 5, 30, 0, 1)
def __str__(self):
return f"{self.name}"
class Apple(Item):
def __init__(self):
super().__init__("Apple🍎", 0, 0, 2, 1)
def __str__(self):
return f"{self.name}"
class Corn(Item):
def __init__(self):
super().__init__("Corn🌽", 0, 0, 4, 1)
def __str__(self):
return f"{self.name}"
class Banana(Item):
def __init__(self):
super().__init__("Banana🍌", 0, 0, 4, 1)
def __str__(self):
return f"{self.name}"
class Tomato(Item):
def __init__(self):
super().__init__("Tomato🍅", 0, 0, 3, 1)
def __str__(self):
return f"{self.name}"