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
995af3ec
Commit
995af3ec
authored
Apr 29, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix extra
parent
f73fb761
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
src/service/duel/start.ts
src/service/duel/start.ts
+5
-1
src/ui/Duel/PlayMat/Mat.tsx
src/ui/Duel/PlayMat/Mat.tsx
+7
-3
No files found.
src/service/duel/start.ts
View file @
995af3ec
...
@@ -2,7 +2,6 @@ import { v4 as v4uuid } from "uuid";
...
@@ -2,7 +2,6 @@ import { v4 as v4uuid } from "uuid";
import
{
ygopro
}
from
"
@/api
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
store
}
from
"
@/stores
"
;
import
{
store
}
from
"
@/stores
"
;
const
{
matStore
}
=
store
;
const
{
matStore
}
=
store
;
export
default
(
start
:
ygopro
.
StocGameMessage
.
MsgStart
)
=>
{
export
default
(
start
:
ygopro
.
StocGameMessage
.
MsgStart
)
=>
{
...
@@ -77,4 +76,9 @@ export default (start: ygopro.StocGameMessage.MsgStart) => {
...
@@ -77,4 +76,9 @@ export default (start: ygopro.StocGameMessage.MsgStart) => {
idleInteractivities
:
[],
idleInteractivities
:
[],
});
});
}
}
// 在`WaitRoom`页面会设置自己的额外卡组,但那时候拿不到正确的`controller`值,因为不知道自己是先攻还是后手,因此这里需要重新为自己的额外卡组设置`controller`值
matStore
.
in
(
ygopro
.
CardZone
.
EXTRA
)
.
me
.
forEach
((
state
)
=>
(
state
.
location
.
controler
=
1
-
opponent
));
};
};
src/ui/Duel/PlayMat/Mat.tsx
View file @
995af3ec
...
@@ -110,7 +110,7 @@ export const Mat = () => {
...
@@ -110,7 +110,7 @@ export const Mat = () => {
?
onCardClick
(
card
)
?
onCardClick
(
card
)
:
card
.
location
.
zone
==
YgoZone
.
DECK
:
card
.
location
.
zone
==
YgoZone
.
DECK
?
()
=>
{}
?
()
=>
{}
:
onFieldClick
(
renderCards
,
card
.
location
.
zone
)
:
onFieldClick
(
renderCards
,
card
)
}
}
/>
/>
))
}
))
}
...
@@ -260,8 +260,12 @@ const onCardClick = (state: CardState) => () => {
...
@@ -260,8 +260,12 @@ const onCardClick = (state: CardState) => () => {
}
}
};
};
const
onFieldClick
=
(
states
:
Array
<
CardState
>
,
zone
:
YgoZone
)
=>
()
=>
{
const
onFieldClick
=
(
states
:
Array
<
CardState
>
,
clicked
:
CardState
)
=>
()
=>
{
const
displayStates
=
states
.
filter
((
state
)
=>
state
.
location
.
zone
==
zone
);
const
displayStates
=
states
.
filter
(
(
state
)
=>
state
.
location
.
zone
==
clicked
.
location
.
zone
&&
state
.
location
.
controler
===
clicked
.
location
.
controler
);
messageStore
.
cardListModal
.
list
=
displayStates
.
map
((
item
)
=>
({
messageStore
.
cardListModal
.
list
=
displayStates
.
map
((
item
)
=>
({
meta
:
item
.
occupant
,
meta
:
item
.
occupant
,
...
...
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