mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-01 03:18:06 +03:00
fix: why the HELL is our code able to compile **with errors??**
This commit is contained in:
@@ -8,7 +8,7 @@ import { TachiConfig } from "lib/config";
|
||||
import { PrudenceSchema, p } from "prudence";
|
||||
import React, { useEffect, useMemo, useState } from "react";
|
||||
import { Alert, Button, Col, Form, Modal, Row } from "react-bootstrap";
|
||||
import { FormatPrError, GetGameConfig } from "tachi-common";
|
||||
import { FormatPrError, GetGameConfig, GetGamePTConfig, GetScoreMetrics } from "tachi-common";
|
||||
import { PR_GOAL_SCHEMA } from "tachi-common/lib/schemas";
|
||||
import { SetState } from "types/react";
|
||||
import { RawQuestDocument } from "types/tachi";
|
||||
@@ -38,8 +38,33 @@ const PR_LOCAL_QUESTS_SCHEMA: PrudenceSchema = {
|
||||
{
|
||||
goal: {
|
||||
name: "string",
|
||||
charts: PR_GOAL_SCHEMA.charts,
|
||||
criteria: PR_GOAL_SCHEMA.criteria,
|
||||
charts: p.or(
|
||||
{
|
||||
type: p.is("folder"),
|
||||
data: "string",
|
||||
},
|
||||
{
|
||||
type: p.is("multi"),
|
||||
data: ["string"],
|
||||
},
|
||||
{
|
||||
type: p.is("single"),
|
||||
data: "string",
|
||||
}
|
||||
),
|
||||
criteria: p.or(
|
||||
{
|
||||
mode: p.is("single"),
|
||||
key: "string", // temp
|
||||
value: "number",
|
||||
},
|
||||
{
|
||||
mode: p.isIn("absolute", "proportion"),
|
||||
countNum: p.isPositive,
|
||||
key: "string", // temp
|
||||
value: "number",
|
||||
}
|
||||
),
|
||||
},
|
||||
note: p.optional("string"),
|
||||
},
|
||||
|
||||
@@ -26,6 +26,7 @@ const GPT_UTILS: Record<GPTString, Array<GPTUtility>> = {
|
||||
"usc:Keyboard": [],
|
||||
"wacca:Single": [],
|
||||
"maimaidx:Single": [],
|
||||
"maimai:Single": [],
|
||||
};
|
||||
|
||||
export function GetGPTUtils(game: Game, playtype: Playtype) {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import { getUserActions } from "app/actions/user";
|
||||
import React, { createContext, useState } from "react";
|
||||
import { UserDocument } from "tachi-common";
|
||||
import { JustChildren, SetState } from "types/react";
|
||||
|
||||
@@ -7,6 +7,7 @@ const scales: Record<Game, number> = {
|
||||
chunithm: 5,
|
||||
gitadora: 1,
|
||||
maimaidx: 1,
|
||||
maimai: 1,
|
||||
museca: 5,
|
||||
sdvx: 5,
|
||||
usc: 5,
|
||||
|
||||
Reference in New Issue
Block a user