forked from RAF-Law/alien_game
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplayer_items.py
More file actions
295 lines (289 loc) · 11.1 KB
/
player_items.py
File metadata and controls
295 lines (289 loc) · 11.1 KB
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
from django.core.files.base import File
static_weapon_path = 'static/weapon_icons/'
static_artifact_path = 'static/artifact_icons/'
weapon_icon_paths = {
"Ak-47": "Ak-47.png",
"Baseball Bat": "Baseball Bat.png",
"Laser Gun": "Laser Gun.png",
"Plasma Rifle": "Plasma Rifle.png",
"Energy Sword": "Energy Sword.png",
"Flamethrower": "Flamethrower.png",
"Railgun": "Railgun.png",
"Katana": "Katana.png",
"Chicken": "Chicken.png",
"Revolver": "Revolver.png",
"Shotgun": "Shotgun.png",
}
artifact_icon_paths = {
"Cosmic Crystal": "Cosmic Crystal.png",
"Galactic Map": "Galactic Map.png",
"Alien Artifact": "Alien Artifact.png",
"Extraterrestrial Coin": "Extraterrestrial Coin.png",
"Space Helmet": "Space Helmet.png",
"Alien Skull": "Alien Skull.png",
"Stardust": "Stardust.png",
"Meteorite Fragment": "Meteorite Fragment.png",
"Alien Fossil": "Alien Fossil.png",
"Space Gem": "Space Gem.png",
"Alien Egg": "Alien Egg.png",
"Cosmic Dust": "Cosmic Dust.png",
"Alien Amulet": "Alien Amulet.png",
"Galactic Artifact": "Galactic Artifact.png",
"Space Relic": "Space Relic.png",
"Alien Crystal": "Alien Crystal.png",
"Extraterrestrial Relic": "Extraterrestrial Relic.png",
"Shimschnar's Left Hand Glove": "Shimschnar's Left Hand Glove.png",
"The Dictionary of the Ancients": "The Dictionary of the Ancients.png",
"The Orb of Time": "The Orb of Time.png",
"The Eye of Schmelborg": "The Eye of Schmelborg.png",
}
weapons = {
"Ak-47": {
'weapon_id': 1,
'name': "Ak-47",
'damage': 40,
'description': "A powerful assault Rifle",
'icon': File(open(static_weapon_path + weapon_icon_paths["Ak-47"], 'rb')),
'rarity': 2,
'attack_message': "You shoot the alien with your Ak-47",
},
"Baseball Bat": {
'weapon_id': 2,
'name': "Baseball Bat",
'damage': 15,
'description': "A wooden baseball bat with barbed wire wrapped around it",
'icon': File(open(static_weapon_path + weapon_icon_paths["Baseball Bat"], 'rb')),
'rarity': 1,
'attack_message': "You hit the alien with your gruesome baseball bat",
},
"Laser Gun": {
'weapon_id': 3,
'name': "Laser Gun",
'damage': 50,
'description': "A futuristic laser weapon not of this world",
'icon': File(open(static_weapon_path + weapon_icon_paths["Laser Gun"], 'rb')),
'rarity': 2,
'attack_message': "You zap the alien with your Laser Gun",
},
"Plasma Rifle": {
'weapon_id': 4,
'name': "Plasma Rifle",
'damage': 60,
'description': "A high-tech energy charged rifle",
'icon': File(open(static_weapon_path + weapon_icon_paths["Plasma Rifle"], 'rb')),
'rarity': 3,
'attack_message': "You blast the alien with your Plasma Rifle",
},
"Energy Sword": {
'weapon_id': 5,
'name': "Energy Sword",
'damage': 75,
'description': "A sword made of pure energy that emits a loud hum",
'icon': File(open(static_weapon_path + weapon_icon_paths["Energy Sword"], 'rb')),
'rarity': 3,
'attack_message': "You slash the alien with your Energy Sword",
},
"Flamethrower": {
'weapon_id': 6,
'name': "Flamethrower",
'damage': 55,
'description': "A weapon that shoots flames, incinerating enemies",
'icon': File(open(static_weapon_path + weapon_icon_paths["Flamethrower"], 'rb')),
'rarity': 2,
'attack_message': "You burn the alien with your Flamethrower",
},
"Railgun": {
'weapon_id': 7,
'name': "Railgun",
'damage': 90,
'description': "A powerful electromagnetic weapon that can fire from up to 65 kilometres away",
'icon': File(open(static_weapon_path + weapon_icon_paths["Railgun"], 'rb')),
'rarity': 3,
'attack_message': "You blow a hole through the alien with your Railgun",
},
"Katana": {
'weapon_id': 8,
'name': "影の龍",
'damage': 100,
'description': "A katana that was passed down through many generations of honorable samurai",
'icon': File(open(static_weapon_path + weapon_icon_paths["Katana"], 'rb')),
'rarity': 4,
'attack_message': "You slice through the alien with unheavenly precision",
},
"Chicken": {
'weapon_id': 9,
'name': "Chicken",
'damage': 10,
'description': "A chicken that attacks aliens for some reason",
'icon': File(open(static_weapon_path + weapon_icon_paths["Chicken"], 'rb')),
'rarity': 1,
'attack_message': "You throw the chicken at the alien",
},
"Revolver": {
'weapon_id': 10,
'name': "Revolver",
'damage': 25,
'description': "A six-shooter revolver",
'icon': File(open(static_weapon_path + weapon_icon_paths["Revolver"], 'rb')),
'rarity': 1,
'attack_message': "You shoot the alien with your revolver",
},
"Shotgun": {
'weapon_id': 11,
'name': "Shotgun",
'damage': 45,
'description': "A shotgun that fires a spread of pellets",
'icon': File(open(static_weapon_path + weapon_icon_paths["Shotgun"], 'rb')),
'rarity': 2,
'attack_message': "You blast the alien with your shotgun",
},
}
artifacts = {
"Cosmic Crystal": {
'artifact_id': 1,
'name': "Cosmic Crystal",
'description': "A crystal that glows with an otherworldly light",
'icon': File(open(static_artifact_path + artifact_icon_paths["Cosmic Crystal"], 'rb')),
'rarity': 3,
},
"Galactic Map": {
'artifact_id': 2,
'name': "Galactic Map",
'description': "A map showing the locations of alien worlds",
'icon': File(open(static_artifact_path + artifact_icon_paths["Galactic Map"], 'rb')),
'rarity': 2,
},
"Alien Artifact": {
'artifact_id': 3,
'name': "Alien Artifact",
'description': "An artifact of unknown origin and purpose",
'icon': File(open(static_artifact_path + artifact_icon_paths["Alien Artifact"], 'rb')),
'rarity': 1,
},
"Extraterrestrial Coin": {
'artifact_id': 4,
'name': "Extraterrestrial Coin",
'description': "A coin from an alien currency",
'icon': File(open(static_artifact_path + artifact_icon_paths["Extraterrestrial Coin"], 'rb')),
'rarity': 1,
},
"Space Helmet": {
'artifact_id': 5,
'name': "Space Helmet",
'description': "A helmet worn by an alien astronaut",
'icon': File(open(static_artifact_path + artifact_icon_paths["Space Helmet"], 'rb')),
'rarity': 2,
},
"Alien Skull": {
'artifact_id': 6,
'name': "Alien Skull",
'description': "The skull of a long-dead alien",
'icon': File(open(static_artifact_path + artifact_icon_paths["Alien Skull"], 'rb')),
'rarity': 3,
},
"Stardust": {
'artifact_id': 7,
'name': "Stardust",
'description': "A handful of glowing stardust",
'icon': File(open(static_artifact_path + artifact_icon_paths["Stardust"], 'rb')),
'rarity': 1,
},
"Meteorite Fragment": {
'artifact_id': 8,
'name': "Meteorite Fragment",
'description': "A fragment of a meteorite",
'icon': File(open(static_artifact_path + artifact_icon_paths["Meteorite Fragment"], 'rb')),
'rarity': 2,
},
"Alien Fossil": {
'artifact_id': 9,
'name': "Alien Fossil",
'description': "A fossilized alien creature",
'icon': File(open(static_artifact_path + artifact_icon_paths["Alien Fossil"], 'rb')),
'rarity': 3,
},
"Space Gem": {
'artifact_id': 10,
'name': "Space Gem",
'description': "A gem from outer space",
'icon': File(open(static_artifact_path + artifact_icon_paths["Space Gem"], 'rb')),
'rarity': 2,
},
"Alien Egg": {
'artifact_id': 11,
'name': "Alien Egg",
'description': "An egg containing an alien lifeform",
'icon': File(open(static_artifact_path + artifact_icon_paths["Alien Egg"], 'rb')),
'rarity': 1,
},
"Cosmic Dust": {
'artifact_id': 12,
'name': "Cosmic Dust",
'description': "A small amount of cosmic dust",
'icon': File(open(static_artifact_path + artifact_icon_paths["Cosmic Dust"], 'rb')),
'rarity': 1,
},
"Alien Amulet": {
'artifact_id': 13,
'name': "Alien Amulet",
'description': "An amulet with alien symbols",
'icon': File(open(static_artifact_path + artifact_icon_paths["Alien Amulet"], 'rb')),
'rarity': 2,
},
"Galactic Artifact": {
'artifact_id': 14,
'name': "Galactic Artifact",
'description': "An artifact from another galaxy",
'icon': File(open(static_artifact_path + artifact_icon_paths["Galactic Artifact"], 'rb')),
'rarity': 3,
},
"Space Relic": {
'artifact_id': 15,
'name': "Space Relic",
'description': "A relic from outer space",
'icon': File(open(static_artifact_path + artifact_icon_paths["Space Relic"], 'rb')),
'rarity': 2,
},
"Alien Crystal": {
'artifact_id': 16,
'name': "Alien Crystal",
'description': "A crystal with alien properties",
'icon': File(open(static_artifact_path + artifact_icon_paths["Alien Crystal"], 'rb')),
'rarity': 3,
},
"Extraterrestrial Relic": {
'artifact_id': 17,
'name': "Extraterrestrial Relic",
'description': "A relic from an extraterrestrial civilization",
'icon': File(open(static_artifact_path + artifact_icon_paths["Extraterrestrial Relic"], 'rb')),
'rarity': 2,
},
"Shimschnar's Left Hand Glove": {
'artifact_id': 18,
'name': "Shimschnar's Left Hand Glove",
'description': "The left hand glove of the legendary alien warrior Shimschnar, it's true ability is unknown",
'icon': File(open(static_artifact_path + artifact_icon_paths["Shimschnar's Left Hand Glove"], 'rb')),
'rarity': 4,
},
"The Dictionary of the Ancients": {
'artifact_id': 19,
'name': "The Dictionary of the Ancients",
'description': "A book containing the language of an ancient alien civilization",
'icon': File(open(static_artifact_path + artifact_icon_paths["The Dictionary of the Ancients"], 'rb')),
'rarity': 4,
},
"The Orb of Time": {
'artifact_id': 20,
'name': "The Orb of Time",
'description': "An orb that can manipulate time itself, but you have no idea how it works",
'icon': File(open(static_artifact_path + artifact_icon_paths["The Orb of Time"], 'rb')),
'rarity': 4,
},
"The Eye of Schmelborg": {
'artifact_id': 21,
'name': "The Eye of Schmelborg",
'description': "While conquering planets, Schmelborg lost his eye. Now you found it. Well done I guess.",
'icon': File(open(static_artifact_path + artifact_icon_paths["The Eye of Schmelborg"], 'rb')),
'rarity': 6,
}
}