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
23c357fa
Commit
23c357fa
authored
Jun 05, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix/announce' into 'main'
Fix/announce See merge request
!216
parents
2ca691a4
be345c45
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
9 deletions
+11
-9
src/service/duel/announce.ts
src/service/duel/announce.ts
+9
-8
src/service/duel/gameMsg.ts
src/service/duel/gameMsg.ts
+1
-1
src/ui/Duel/PlayMat/Card/index.tsx
src/ui/Duel/PlayMat/Card/index.tsx
+1
-0
No files found.
src/service/duel/announce.ts
View file @
23c357fa
...
@@ -38,14 +38,15 @@ export default async (announce: MsgAnnounce) => {
...
@@ -38,14 +38,15 @@ export default async (announce: MsgAnnounce) => {
}
}
case
MsgAnnounce
.
AnnounceType
.
Card
:
{
case
MsgAnnounce
.
AnnounceType
.
Card
:
{
announceModal
.
title
=
fetchStrings
(
"
!system
"
,
564
);
announceModal
.
title
=
fetchStrings
(
"
!system
"
,
564
);
announceModal
.
options
=
await
Promise
.
all
(
for
(
const
option
of
announce
.
options
)
{
announce
.
options
.
map
(
async
(
option
)
=>
({
const
meta
=
await
fetchCard
(
option
.
code
);
info
:
await
fetchCard
(
option
.
code
).
then
(
if
(
meta
.
text
.
name
)
{
(
meta
)
=>
meta
.
text
.
name
??
"
[?]
"
announceModal
.
options
.
push
({
),
info
:
meta
.
text
.
name
,
response
:
option
.
response
,
response
:
option
.
response
,
}))
});
);
}
}
announceModal
.
isOpen
=
true
;
announceModal
.
isOpen
=
true
;
break
;
break
;
...
...
src/service/duel/gameMsg.ts
View file @
23c357fa
...
@@ -136,7 +136,7 @@ async function _handleGameMsg(pb: ygopro.YgoStocMsg) {
...
@@ -136,7 +136,7 @@ async function _handleGameMsg(pb: ygopro.YgoStocMsg) {
break
;
break
;
}
}
case
"
select_option
"
:
{
case
"
select_option
"
:
{
onMsgSelectOption
(
msg
.
select_option
);
await
onMsgSelectOption
(
msg
.
select_option
);
break
;
break
;
}
}
...
...
src/ui/Duel/PlayMat/Card/index.tsx
View file @
23c357fa
...
@@ -157,6 +157,7 @@ const onCardClick = (card: CardType) => {
...
@@ -157,6 +157,7 @@ const onCardClick = (card: CardType) => {
(
interactivity
)
=>
({
(
interactivity
)
=>
({
desc
:
interactTypeToString
(
interactivity
.
interactType
),
desc
:
interactTypeToString
(
interactivity
.
interactType
),
response
:
interactivity
.
response
,
response
:
interactivity
.
response
,
effectCode
:
interactivity
.
activateIndex
,
})
})
);
);
messageStore
.
cardModal
.
counters
=
card
.
counters
;
messageStore
.
cardModal
.
counters
=
card
.
counters
;
...
...
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