zenno: start conversations tool

This commit is contained in:
2026-03-30 21:53:03 -04:00
parent 34e8c1f812
commit e139eae06d
2 changed files with 18 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
import convoJSON from '../../../../global/conversation.json'
import globalJSON from '../../../../global/conversation.json'
/**
* Lobby conversation data.
@@ -38,3 +38,11 @@ export interface Conversation {
*/
condition_type: 0 | 1 | 2 | 3 | 4;
}
export const conversation = {
global: globalJSON as Conversation[],
}
export const byChara = {
global: globalJSON.reduce((m, c) => m.set(c.chara_id, (m.get(c.chara_id) ?? []).concat(c as Conversation)), new Map<Conversation['chara_id'], Conversation[]>()),
}