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
b9f33694
Commit
b9f33694
authored
May 21, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add some log
parent
01b9e6f1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletion
+10
-1
src/service/duel/chainSolved.ts
src/service/duel/chainSolved.ts
+3
-1
src/service/duel/move.ts
src/service/duel/move.ts
+5
-0
src/stores/matStore/store.ts
src/stores/matStore/store.ts
+2
-0
No files found.
src/service/duel/chainSolved.ts
View file @
b9f33694
...
@@ -17,6 +17,8 @@ export default (chainSolved: ygopro.StocGameMessage.MsgChainSolved) => {
...
@@ -17,6 +17,8 @@ export default (chainSolved: ygopro.StocGameMessage.MsgChainSolved) => {
// 设置被连锁状态为空
// 设置被连锁状态为空
matStore
.
setChained
(
location
,
undefined
);
matStore
.
setChained
(
location
,
undefined
);
}
else
{
}
else
{
console
.
warn
(
"
pop from chains return null!
"
);
console
.
warn
(
`pop from chains return null! solved_index=
${
chainSolved
.
solved_index
}
, len of chains in store=
${
matStore
.
chains
.
length
}
`
);
}
}
};
};
src/service/duel/move.ts
View file @
b9f33694
...
@@ -48,6 +48,11 @@ export default async (move: MsgMove) => {
...
@@ -48,6 +48,11 @@ export default async (move: MsgMove) => {
.
in
(
from
.
location
)
.
in
(
from
.
location
)
.
of
(
from
.
controler
)
.
of
(
from
.
controler
)
.
remove
(
from
.
sequence
);
.
remove
(
from
.
sequence
);
if
(
removed
===
undefined
)
{
console
.
warn
(
`remove from matStore return undefined, location=
${
from
}
`
);
}
uuid
=
removed
.
uuid
;
uuid
=
removed
.
uuid
;
chainIndex
=
removed
.
chainIndex
;
chainIndex
=
removed
.
chainIndex
;
...
...
src/stores/matStore/store.ts
View file @
b9f33694
...
@@ -292,6 +292,8 @@ export const matStore: MatState = proxy<MatState>({
...
@@ -292,6 +292,8 @@ export const matStore: MatState = proxy<MatState>({
.
at
(
location
.
sequence
);
.
at
(
location
.
sequence
);
if
(
target
)
{
if
(
target
)
{
target
.
chainIndex
=
chainIndex
;
target
.
chainIndex
=
chainIndex
;
}
else
{
console
.
warn
(
`target is null in setChained, location=
${
location
}
`
);
}
}
},
},
});
});
...
...
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