osu-repy/osuRepy/helpers/osuMods.py

38 lines
759 B
Python
Raw Normal View History

2019-03-13 05:43:26 +01:00
NOMOD = 0
NOFAIL = 1 << 0
EASY = 1 << 1
TOUCHSCREEN = 1 << 2
HIDDEN = 1 << 3
HARDROCK = 1 << 4
SUDDENDEATH = 1 << 5
DOUBLETIME = 1 << 6
RELAX = 1 << 7
HALFTIME = 1 << 8
NIGHTCORE = 1 << 9
FLASHLIGHT = 1 << 10
AUTOPLAY = 1 << 11
SPUNOUT = 1 << 12
RELAX2 = 1 << 13
PERFECT = 1 << 14
KEY4 = 1 << 15
KEY5 = 1 << 16
KEY6 = 1 << 17
KEY7 = 1 << 18
KEY8 = 1 << 19
KEYMOD = 1 << 20
FADEIN = 1 << 21
RANDOM = 1 << 22
LASTMOD = 1 << 23
KEY9 = 1 << 24
KEY10 = 1 << 25
KEY1 = 1 << 26
KEY3 = 1 << 27
KEY2 = 1 << 28
SCOREV2 = 1 << 29
def all_enabled(modmask, mods):
return modmask & mods == mods
def any_enabled(modmask, mods):
return modmask & mods > 0