feat: 토너먼트 메타 조정 및 결과 처리 기능 추가

This commit is contained in:
2026-01-29 18:33:56 +00:00
parent 9fff671c2f
commit c4a5361fc6
6 changed files with 365 additions and 7 deletions
@@ -421,6 +421,17 @@ export const tournamentRouter = router({
throw new TRPCError({ code: 'BAD_REQUEST', message: adjustResult.reason });
}
await ctx.turnDaemon.sendCommand({
type: 'adjustGeneralMeta',
reason: 'tournamentBet',
adjustments: [
{
generalId: general.id,
metaDelta: { rank_betgold: input.amount },
},
],
});
await store.appendBettingEntry({
generalId: general.id,
targetId: input.targetId,