Files
plugins/otoca@asphyxia/models/card.ts
iamsub 7518cd2abc otoca: split the plugin into handlers, models and helpers
index.ts now only registers settings and routes. Handlers are grouped
by part of the game (version, card, key, print, play, item, gift), the
stored documents live in models/, and the closet, player creation, db
access, game data and helpers each have their own file. No behavior
change: the test flow gives the same results.
2026-09-29 15:32:48 +09:00

19 lines
511 B
TypeScript

import { Accessory } from './user';
export interface Card {
collection: 'card';
otocard_id: string;
inquire_id: string;
user_seq: number;
doll_seq: number;
kira_type: number;
kira: number[]; // hp, atk, mat, spd bonus printed on this card
// the coord printed on this card: scanning an old card plays the latest doll in that card's coord,
// even with items sold since then
equip: number[][];
accessory: Accessory[];
decoseal_id: number;
from_otocard_id: string;
created: number;
}