mirror of
https://github.com/Lost-MSth/Arcaea-server.git
synced 2026-02-04 21:47:28 +08:00
- Code refactoring - Fix a bug that the other player will not become the host of the room at once, when the player disconnect in link play. > Maybe add many unknown bugs. XD > The song database `arcsong.db` will not used in the future. You can use a tool in `tool` folder to import old data.
35 lines
1000 B
Python
35 lines
1000 B
Python
from setting import Config
|
|
|
|
|
|
class Constant:
|
|
|
|
BAN_TIME = [1, 3, 7, 15, 31]
|
|
|
|
MAX_STAMINA = 12
|
|
|
|
STAMINA_RECOVER_TICK = 1800000
|
|
|
|
CORE_EXP = 250
|
|
|
|
LEVEL_STEPS = {1: 0, 2: 50, 3: 100, 4: 150, 5: 200, 6: 300, 7: 450, 8: 650, 9: 900, 10: 1200, 11: 1600, 12: 2100, 13: 2700, 14: 3400, 15: 4200, 16: 5100,
|
|
17: 6100, 18: 7200, 19: 8500, 20: 10000, 21: 11500, 22: 13000, 23: 14500, 24: 16000, 25: 17500, 26: 19000, 27: 20500, 28: 22000, 29: 23500, 30: 25000}
|
|
|
|
ETO_UNCAP_BONUS_PROGRESS = 7
|
|
LUNA_UNCAP_BONUS_PROGRESS = 7
|
|
AYU_UNCAP_BONUS_PROGRESS = 5
|
|
|
|
MAX_FRIEND_COUNT = 50
|
|
|
|
BEST30_WEIGHT = 1 / 40
|
|
RECENT10_WEIGHT = 1 / 40
|
|
|
|
WORLD_MAP_FOLDER_PATH = './database/map/'
|
|
SONG_FILE_FOLDER_PATH = './database/songs/'
|
|
|
|
DOWNLOAD_TIMES_LIMIT = Config.DOWNLOAD_TIMES_LIMIT
|
|
DOWNLOAD_TIME_GAP_LIMIT = Config.DOWNLOAD_TIME_GAP_LIMIT
|
|
DOWNLOAD_LINK_PREFIX = Config.DOWNLOAD_LINK_PREFIX
|
|
|
|
LINK_PLAY_UNLOCK_LENGTH = 512
|
|
LINK_PLAY_TIMEOUT = 10
|