Commit cedf08a2 authored by chechunchi's avatar chechunchi

fix start.ts

parent 5c373e9f
Pipeline #21972 passed with stages
in 14 minutes and 27 seconds
......@@ -7,8 +7,6 @@ import { fetchCard, ygopro } from "@/api";
import { cardStore, CardType, playerStore, store } from "@/stores";
const { matStore } = store;
const TOKEN_SIZE = 13; // 每人场上最多就只可能有13个token
const MZONE_SIZE = 7; // 普通怪兽区 + 额外怪兽区
const SZONE_SIZE = 6; // 普通魔陷区 + 场地区
export default (start: ygopro.StocGameMessage.MsgStart) => {
// 先初始化`matStore`
......@@ -79,7 +77,7 @@ export default (start: ygopro.StocGameMessage.MsgStart) => {
// 设置自己的额外卡组,信息是在waitroom之中拿到的
cardStore
.at(ygopro.CardZone.EXTRA, 1 - opponent)
.forEach((card) => (card.code = myExtraDeckCodes.shift()!));
.forEach((card) => (card.code = myExtraDeckCodes.pop()!));
};
// 自动从code推断出occupant
......
......@@ -11,11 +11,11 @@ import { cardStore, CardType, messageStore } from "@/stores";
import { interactTypeToString } from "../../utils";
import {
chaining,
moveToDeck,
moveToGround,
moveToHand,
moveToOutside,
chaining,
} from "./springs";
const NeosConfig = useConfig();
......
export * from "./chaining";
export * from "./moveToDeck";
export * from "./moveToGround";
export * from "./moveToHand";
export * from "./moveToOutside";
export * from "./chaining";
import { easings } from "@react-spring/web";
import { ygopro } from "@/api";
import { type CardType, isMe, cardStore } from "@/stores";
import { cardStore, type CardType, isMe } from "@/stores";
import { matConfig } from "../../utils";
import { SpringApi } from "./types";
......
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