Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
Neos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
love_飞影
Neos
Commits
0b947a16
Commit
0b947a16
authored
May 13, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
optimize selectChain
parent
bd908811
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
2 deletions
+12
-2
neos.config.json
neos.config.json
+1
-0
neos.config.prod.json
neos.config.prod.json
+1
-0
src/service/duel/selectChain.ts
src/service/duel/selectChain.ts
+10
-2
No files found.
neos.config.json
View file @
0b947a16
...
@@ -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
,
...
...
neos.config.prod.json
View file @
0b947a16
...
@@ -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
,
...
...
src/service/duel/selectChain.ts
View file @
0b947a16
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
{
// 有关键卡
// 有关键卡
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment