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
cedf08a2
Commit
cedf08a2
authored
May 29, 2023
by
chechunchi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix start.ts
parent
5c373e9f
Pipeline
#21972
passed with stages
in 14 minutes and 27 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
6 deletions
+4
-6
src/service/duel/start.ts
src/service/duel/start.ts
+1
-3
src/ui/Duel/PlayMat/Card/index.tsx
src/ui/Duel/PlayMat/Card/index.tsx
+1
-1
src/ui/Duel/PlayMat/Card/springs/index.ts
src/ui/Duel/PlayMat/Card/springs/index.ts
+1
-1
src/ui/Duel/PlayMat/Card/springs/moveToHand.ts
src/ui/Duel/PlayMat/Card/springs/moveToHand.ts
+1
-1
No files found.
src/service/duel/start.ts
View file @
cedf08a2
...
...
@@ -7,8 +7,6 @@ import { fetchCard, ygopro } from "@/api";
import
{
cardStore
,
CardType
,
playerStore
,
store
}
from
"
@/stores
"
;
const
{
matStore
}
=
store
;
const
TOKEN_SIZE
=
13
;
// 每人场上最多就只可能有13个token
const
MZONE_SIZE
=
7
;
// 普通怪兽区 + 额外怪兽区
const
SZONE_SIZE
=
6
;
// 普通魔陷区 + 场地区
export
default
(
start
:
ygopro
.
StocGameMessage
.
MsgStart
)
=>
{
// 先初始化`matStore`
...
...
@@ -79,7 +77,7 @@ export default (start: ygopro.StocGameMessage.MsgStart) => {
// 设置自己的额外卡组,信息是在waitroom之中拿到的
cardStore
.
at
(
ygopro
.
CardZone
.
EXTRA
,
1
-
opponent
)
.
forEach
((
card
)
=>
(
card
.
code
=
myExtraDeckCodes
.
shift
()
!
));
.
forEach
((
card
)
=>
(
card
.
code
=
myExtraDeckCodes
.
pop
()
!
));
};
// 自动从code推断出occupant
...
...
src/ui/Duel/PlayMat/Card/index.tsx
View file @
cedf08a2
...
...
@@ -11,11 +11,11 @@ import { cardStore, CardType, messageStore } from "@/stores";
import
{
interactTypeToString
}
from
"
../../utils
"
;
import
{
chaining
,
moveToDeck
,
moveToGround
,
moveToHand
,
moveToOutside
,
chaining
,
}
from
"
./springs
"
;
const
NeosConfig
=
useConfig
();
...
...
src/ui/Duel/PlayMat/Card/springs/index.ts
View file @
cedf08a2
export
*
from
"
./chaining
"
;
export
*
from
"
./moveToDeck
"
;
export
*
from
"
./moveToGround
"
;
export
*
from
"
./moveToHand
"
;
export
*
from
"
./moveToOutside
"
;
export
*
from
"
./chaining
"
;
src/ui/Duel/PlayMat/Card/springs/moveToHand.ts
View file @
cedf08a2
import
{
easings
}
from
"
@react-spring/web
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
type
CardType
,
isMe
,
cardStor
e
}
from
"
@/stores
"
;
import
{
cardStore
,
type
CardType
,
isM
e
}
from
"
@/stores
"
;
import
{
matConfig
}
from
"
../../utils
"
;
import
{
SpringApi
}
from
"
./types
"
;
...
...
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