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
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
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
MyCard
Neos
Commits
aaf2a7ee
Commit
aaf2a7ee
authored
May 24, 2023
by
chechunchi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update small
parent
f81ba477
Pipeline
#21809
passed with stages
in 19 minutes and 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
12 deletions
+1
-12
src/service/duel/chainSolved.ts
src/service/duel/chainSolved.ts
+1
-12
No files found.
src/service/duel/chainSolved.ts
View file @
aaf2a7ee
import
{
ygopro
}
from
"
@/api
"
;
import
{
sleep
}
from
"
@/infra
"
;
import
{
matStore
}
from
"
@/stores
"
;
// FIXME: 处理连锁会存在三种结果:
...
...
@@ -15,18 +14,8 @@ export default async (chainSolved: ygopro.StocGameMessage.MsgChainSolved) => {
.
splice
(
chainSolved
.
solved_index
-
1
,
1
)
.
at
(
0
);
if
(
location
)
{
// 连锁处理时,先聚焦这张卡
matStore
.
setFocus
(
location
,
true
);
await
sleep
(
100
);
// TODO: 针对不同处理结果实现不同动画
// 设置被连锁状态为空,接触连锁
// 设置被连锁状态为空,解除连锁
matStore
.
setChained
(
location
,
undefined
);
await
sleep
(
100
);
// 取消聚焦
matStore
.
setFocus
(
location
,
false
);
}
else
{
console
.
warn
(
`pop from chains return null! solved_index=
${
chainSolved
.
solved_index
}
, len of chains in store=
${
matStore
.
chains
.
length
}
`
...
...
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