Commit 0f57108c authored by Chunchi Che's avatar Chunchi Che

fix lint

parent c7647f21
...@@ -30,6 +30,6 @@ export async function getStrings(description: number): Promise<string> { ...@@ -30,6 +30,6 @@ export async function getStrings(description: number): Promise<string> {
const code = description >> 4; const code = description >> 4;
const index = description & 0xf; const index = description & 0xf;
return getCardStr(await fetchCard(code, true), index) || ""; return getCardStr(await fetchCard(code), index) || "";
} }
} }
...@@ -6,7 +6,7 @@ type MsgSortCard = ygopro.StocGameMessage.MsgSortCard; ...@@ -6,7 +6,7 @@ type MsgSortCard = ygopro.StocGameMessage.MsgSortCard;
export default async (sortCard: MsgSortCard) => { export default async (sortCard: MsgSortCard) => {
await Promise.all( await Promise.all(
sortCard.options.map(async ({ code, response }) => { sortCard.options.map(async ({ code, response }) => {
const meta = await fetchCard(code!, true); const meta = await fetchCard(code!);
messageStore.sortCardModal.options.push({ messageStore.sortCardModal.options.push({
meta, meta,
response: response!, response: response!,
......
...@@ -21,7 +21,7 @@ export const fetchSelectHintMeta = async ({ ...@@ -21,7 +21,7 @@ export const fetchSelectHintMeta = async ({
let selectHintMeta = ""; let selectHintMeta = "";
if (selectHintData > DESCRIPTION_LIMIT) { if (selectHintData > DESCRIPTION_LIMIT) {
// 针对`MSG_SELECT_PLACE`的特化逻辑 // 针对`MSG_SELECT_PLACE`的特化逻辑
const cardMeta = await fetchCard(selectHintData, true); const cardMeta = await fetchCard(selectHintData);
selectHintMeta = fetchStrings("!system", 569).replace( selectHintMeta = fetchStrings("!system", 569).replace(
"[%ls]", "[%ls]",
cardMeta.text.name || "[?]" cardMeta.text.name || "[?]"
......
...@@ -35,7 +35,7 @@ class CardArray extends Array<CardState> implements ArrayCardState { ...@@ -35,7 +35,7 @@ class CardArray extends Array<CardState> implements ArrayCardState {
chainIndex?: number chainIndex?: number
) => ({ ) => ({
uuid, uuid,
occupant: await fetchCard(id, true), occupant: await fetchCard(id),
location: { location: {
controler: controller, controler: controller,
zone: this.zone, zone: this.zone,
...@@ -44,6 +44,7 @@ class CardArray extends Array<CardState> implements ArrayCardState { ...@@ -44,6 +44,7 @@ class CardArray extends Array<CardState> implements ArrayCardState {
}, },
focus: focus ?? false, focus: focus ?? false,
chaining: false, chaining: false,
chainIndex,
directAttack: false, directAttack: false,
counters: {}, counters: {},
idleInteractivities: [], idleInteractivities: [],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment