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
0f57108c
Commit
0f57108c
authored
May 20, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix lint
parent
c7647f21
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
4 deletions
+5
-4
src/api/strings.ts
src/api/strings.ts
+1
-1
src/service/duel/sortCard.ts
src/service/duel/sortCard.ts
+1
-1
src/stores/matStore/methods/fetchHint.ts
src/stores/matStore/methods/fetchHint.ts
+1
-1
src/stores/matStore/store.ts
src/stores/matStore/store.ts
+2
-1
No files found.
src/api/strings.ts
View file @
0f57108c
...
@@ -30,6 +30,6 @@ export async function getStrings(description: number): Promise<string> {
...
@@ -30,6 +30,6 @@ export async function getStrings(description: number): Promise<string> {
const
code
=
description
>>
4
;
const
code
=
description
>>
4
;
const
index
=
description
&
0xf
;
const
index
=
description
&
0xf
;
return
getCardStr
(
await
fetchCard
(
code
,
true
),
index
)
||
""
;
return
getCardStr
(
await
fetchCard
(
code
),
index
)
||
""
;
}
}
}
}
src/service/duel/sortCard.ts
View file @
0f57108c
...
@@ -6,7 +6,7 @@ type MsgSortCard = ygopro.StocGameMessage.MsgSortCard;
...
@@ -6,7 +6,7 @@ type MsgSortCard = ygopro.StocGameMessage.MsgSortCard;
export
default
async
(
sortCard
:
MsgSortCard
)
=>
{
export
default
async
(
sortCard
:
MsgSortCard
)
=>
{
await
Promise
.
all
(
await
Promise
.
all
(
sortCard
.
options
.
map
(
async
({
code
,
response
})
=>
{
sortCard
.
options
.
map
(
async
({
code
,
response
})
=>
{
const
meta
=
await
fetchCard
(
code
!
,
true
);
const
meta
=
await
fetchCard
(
code
!
);
messageStore
.
sortCardModal
.
options
.
push
({
messageStore
.
sortCardModal
.
options
.
push
({
meta
,
meta
,
response
:
response
!
,
response
:
response
!
,
...
...
src/stores/matStore/methods/fetchHint.ts
View file @
0f57108c
...
@@ -21,7 +21,7 @@ export const fetchSelectHintMeta = async ({
...
@@ -21,7 +21,7 @@ export const fetchSelectHintMeta = async ({
let
selectHintMeta
=
""
;
let
selectHintMeta
=
""
;
if
(
selectHintData
>
DESCRIPTION_LIMIT
)
{
if
(
selectHintData
>
DESCRIPTION_LIMIT
)
{
// 针对`MSG_SELECT_PLACE`的特化逻辑
// 针对`MSG_SELECT_PLACE`的特化逻辑
const
cardMeta
=
await
fetchCard
(
selectHintData
,
true
);
const
cardMeta
=
await
fetchCard
(
selectHintData
);
selectHintMeta
=
fetchStrings
(
"
!system
"
,
569
).
replace
(
selectHintMeta
=
fetchStrings
(
"
!system
"
,
569
).
replace
(
"
[%ls]
"
,
"
[%ls]
"
,
cardMeta
.
text
.
name
||
"
[?]
"
cardMeta
.
text
.
name
||
"
[?]
"
...
...
src/stores/matStore/store.ts
View file @
0f57108c
...
@@ -35,7 +35,7 @@ class CardArray extends Array<CardState> implements ArrayCardState {
...
@@ -35,7 +35,7 @@ class CardArray extends Array<CardState> implements ArrayCardState {
chainIndex
?:
number
chainIndex
?:
number
)
=>
({
)
=>
({
uuid
,
uuid
,
occupant
:
await
fetchCard
(
id
,
true
),
occupant
:
await
fetchCard
(
id
),
location
:
{
location
:
{
controler
:
controller
,
controler
:
controller
,
zone
:
this
.
zone
,
zone
:
this
.
zone
,
...
@@ -44,6 +44,7 @@ class CardArray extends Array<CardState> implements ArrayCardState {
...
@@ -44,6 +44,7 @@ class CardArray extends Array<CardState> implements ArrayCardState {
},
},
focus
:
focus
??
false
,
focus
:
focus
??
false
,
chaining
:
false
,
chaining
:
false
,
chainIndex
,
directAttack
:
false
,
directAttack
:
false
,
counters
:
{},
counters
:
{},
idleInteractivities
:
[],
idleInteractivities
:
[],
...
...
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