Change rematch event to change game

This commit is contained in:
2025-12-15 23:50:37 +07:00
parent 07e02ce32d
commit 339a212e57
14 changed files with 428 additions and 257 deletions

View File

@@ -13,7 +13,7 @@ EventTypeLiteral = Literal[
"double_risk",
"jackpot",
"swap",
"rematch",
"game_choice",
]
@@ -32,7 +32,7 @@ class EventCreate(BaseModel):
class EventEffects(BaseModel):
points_multiplier: float = 1.0
drop_free: bool = False
special_action: str | None = None # "swap", "rematch"
special_action: str | None = None # "swap", "game_choice"
description: str = ""
@@ -85,7 +85,7 @@ EVENT_INFO = {
"drop_free": False,
},
EventType.DOUBLE_RISK: {
"name": "Двойной риск",
"name": "Безопасная игра",
"description": "Дропы бесплатны, но очки x0.5",
"default_duration": 120,
"points_multiplier": 0.5,
@@ -106,13 +106,13 @@ EVENT_INFO = {
"drop_free": False,
"special_action": "swap",
},
EventType.REMATCH: {
"name": "Реванш",
"description": "Можно переделать проваленный челлендж за 50% очков",
"default_duration": 240,
"points_multiplier": 0.5,
"drop_free": False,
"special_action": "rematch",
EventType.GAME_CHOICE: {
"name": "Выбор игры",
"description": "Выбери игру и один из 3 челленджей. Можно заменить текущее задание без штрафа!",
"default_duration": 120,
"points_multiplier": 1.0,
"drop_free": True, # Free replacement of current assignment
"special_action": "game_choice",
},
}