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

optimize selectChain

parent bd908811
Pipeline #21617 passed with stages
in 11 minutes and 14 seconds
......@@ -10,6 +10,7 @@
"cardImgUrl":"https://cdn02.moecube.com:444/images/ygopro-images-zh-CN",
"cardsDbUrl":"https://cdn02.moecube.com:444/ygopro-database/zh-CN/cards.cdb",
"stringsUrl":"https://cdn02.moecube.com:444/ygopro-database/zh-CN/strings.conf",
"chainALL": false,
"ui":{
"ground":{
"width":9.9,
......
......@@ -10,6 +10,7 @@
"cardImgUrl":"https://cdn02.moecube.com:444/images/ygopro-images-zh-CN",
"cardsDbUrl":"https://cdn02.moecube.com:444/ygopro-database/zh-CN/cards.cdb",
"stringsUrl":"https://cdn02.moecube.com:444/ygopro-database/zh-CN/strings.conf",
"chainALL": false,
"ui":{
"ground":{
"width":9.9,
......
import { sendSelectSingleResponse, ygopro } from "@/api";
import { useConfig } from "@/config";
import {
fetchCheckCardMeta,
fetchSelectHintMeta,
messageStore,
} from "@/stores";
const NeosConfig = useConfig();
type MsgSelectChain = ygopro.StocGameMessage.MsgSelectChain;
export default (selectChain: MsgSelectChain) => {
const spCount = selectChain.special_count;
......@@ -22,8 +25,13 @@ export default (selectChain: MsgSelectChain) => {
// 直接回答
handle_flag = 0;
} else {
// 处理多张
if (NeosConfig.chainALL) {
// 配置了全部连锁,则处理多张
handle_flag = 2;
} else {
// 否则不连锁
handle_flag = 0;
}
}
} else {
// 有关键卡
......
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