feat: port NPC possession through turn daemon

This commit is contained in:
2026-07-31 03:46:02 +00:00
parent d82e493109
commit 2de8f64da4
30 changed files with 3271 additions and 319 deletions
+21
View File
@@ -226,6 +226,16 @@ export type TurnDaemonCommand =
inheritCity?: number;
inheritBonusStat?: [number, number, number];
}
| {
type: 'npcPossessGeneral';
requestId?: string;
userId: string;
ownerDisplayName: string;
profileId: string;
ownerLegacyPenalty?: Record<string, unknown>;
generalId: number;
tokenNonce: number;
}
| {
type: 'selectPoolCreate';
requestId?: string;
@@ -509,6 +519,17 @@ export type TurnDaemonCommandResult =
code: 'BAD_REQUEST' | 'FORBIDDEN' | 'PRECONDITION_FAILED' | 'CONFLICT' | 'INTERNAL_SERVER_ERROR';
reason: string;
}
| {
type: 'npcPossessGeneral';
ok: true;
generalId: number;
}
| {
type: 'npcPossessGeneral';
ok: false;
code: 'BAD_REQUEST' | 'NOT_FOUND' | 'PRECONDITION_FAILED' | 'CONFLICT' | 'INTERNAL_SERVER_ERROR';
reason: string;
}
| {
type: 'selectPoolCreate';
ok: true;