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