Merge branch 'master' into marathon-v2

This commit is contained in:
2026-01-08 05:37:27 +07:00
7 changed files with 245 additions and 44 deletions

View File

@@ -273,6 +273,7 @@ export interface Assignment {
completed_at: string | null
drop_penalty: number
bonus_challenges?: BonusAssignment[] // For playthrough
event_type?: EventType // Event active when assignment was created
}
export interface SpinResult {
@@ -284,6 +285,7 @@ export interface SpinResult {
bonus_challenges?: Challenge[] // Available bonus challenges for playthrough
can_drop: boolean
drop_penalty: number
event_type?: EventType // Event active during spin
}
export interface CompleteResult {

View File

@@ -152,11 +152,12 @@ export function formatActivityMessage(activity: Activity): { title: string; deta
const points = data.points ? `+${data.points}` : ''
const streak = data.streak && (data.streak as number) > 1 ? `серия ${data.streak}` : ''
const bonus = data.common_enemy_bonus ? `+${data.common_enemy_bonus} бонус` : ''
const eventBonus = data.event_bonus ? `(+${data.event_bonus} ${EVENT_NAMES[data.event_type as EventType] || 'бонус'})` : ''
return {
title: `завершил ${points}`,
details: challenge || undefined,
extra: [game, streak, bonus].filter(Boolean).join(' • ') || undefined,
extra: [game, streak, bonus, eventBonus].filter(Boolean).join(' • ') || undefined,
}
}