mai2: document content bits

This commit is contained in:
Hay1tsme
2026-07-03 20:22:14 -04:00
parent 15ba1b16a3
commit 0b1bd58033
+35
View File
@@ -1,7 +1,42 @@
from typing import Optional
from enum import IntEnum
from core.utils import floor_to_nearest_005
class Mai2Constants:
# For documentation purposes
class ContentBit(IntEnum):
FIRST_PLAY = 0
FIRST_PASS_READ = 1
FIRST_OUT_OF_SERVICE_PASS = 2
FIRST_ANOTHER_PASS = 3
FIRST_SIMPLE_SETTING = 4
FIRST_MAP_SELECT = 5
FIRST_CHARA_SELECT = 6
FIRST_CHARA_GOOD_BAD = 7
FIRST_RATE_CATEGORY = 8
FIRST_CHARA_AWAKE = 9
FIRST_TOTAL_RESULT = 10
FIRST_COLLECITON_CUSTOM = 11
FIRST_COLLECITON_END = 12
FIRST_COLLECITON_PARTNER = 13
FIRST_BOSS_APPEAR = 14
FIRST_CHARA_SELECT_DX_PLUS = 15
FIRST_LOGIN_BONUS = 16
FIRST_PASSPORT_DX_PLUS = 17
FIRST_MAP_SELECT_DX_PLUS = 18
FIRST_FRIEND_BATTLE_RESULT = 19
FIRST_A4_CLASS = 20
FIRST_MODE_SELECT = 21
FIRST_TICKET_SELECT = 22
FIRST_SIN_COURSE_ADD = 23
class ExtendContentBit(IntEnum):
PHOTO_AGREE = 0
GOTO_CODE_READ = 1
GOTO_CHARA_SELECT = 2
GOTO_ICON_PHOTO_SHOOT = 3
CHARACTER_SORT_DESCENDING = 4
GRADE = {
"D": 0,
"C": 1,