zenno: start conversations tool
This commit is contained in:
@@ -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[]>()),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user