-
Notifications
You must be signed in to change notification settings - Fork 1
/
mod.py
56 lines (51 loc) · 2.26 KB
/
mod.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
from rich import print as rprint
from os import name, system
# list of systems
systemList = ["PB-DOS Shell", "Progressbar 1", "Progressbar 2", "Progressbar 3.14", "Progressbar NOT 3.60", "Progressbar 95", "Progressbar 95 Plus", "Progressbar NOT 4.0", "Progressbar 98", "Progressbar 2000", "Progressbar Meme", "Progressbar XB", "Progressbar Wista", "Progressbar 7", "Progressbar 81", "Progressbar 10", "Progressbar 1X", "Progressbar 11"]
#list of pro label level amnts, must corresp\ond with systemList
proList = [10, 10, 10, 10, 10, 10, 20, 30, 20, 30, 30, 30, 40, 40, 50, 50, 60, 60]
if name == "nt":
bgColor = "color 10" # for windows
else:
bgColor = "setterm 10 -term linux -back blue" # for linux
style = "default on blue" # for background of text
def addtionalFeatures(systemname):
global diffLevel
# Built-in additional features:
# startEasyGame(): enables easy mode
# example of how to add programs (exclude the for loop :P):
for i in systemList:
if i == "Progressbar 95" or i == "Progressbar 95 Plus":
continue
if systemname == i:
clear()
rprint('╔════════════════════════╗\n║ G a m e m o d e ║\n║ [green]1 - Easy[/green] ║\n║ [blue]2 - Normal[/blue] ║\n╚════════════════════════╝\n')
choice = input()
if choice == "1":
diffLevel = 0
elif choice != "2":
addtionalFeatures()
def calculateBadge(level, proLevel):
# i know you can probably use case statements here but i'm using if statements because it's easier. -Inferno
if level >= 2147483647:
return "What?"
elif level >= 1000:
return "Grand"
elif level >= 500:
return "Adept"
elif level >= 250:
return "Master"
elif level >= 100:
return "Expert"
elif level >= proLevel:
return "Pro"
elif level < proLevel:
return ""
else:
return "Calculation error."
### DO NOT CHANGE, USED FOR CLEARING SCREEN ###
def clear():
if name == "nt":
_ = system('cls')
else:
_ = system('clear')