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
e53123ee
Commit
e53123ee
authored
May 14, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
b15537c1
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
5 deletions
+14
-5
neos.config.json
neos.config.json
+2
-1
neos.config.prod.json
neos.config.prod.json
+2
-1
src/service/duel/attack.ts
src/service/duel/attack.ts
+1
-1
src/service/onSocketMessage.ts
src/service/onSocketMessage.ts
+1
-1
src/ui/Duel/PlayMat/Mat.tsx
src/ui/Duel/PlayMat/Mat.tsx
+8
-1
No files found.
neos.config.json
View file @
e53123ee
...
...
@@ -74,7 +74,8 @@
},
"commonDelay"
:
200
,
"moveDelay"
:
500
,
"chainingDelay"
:
800
"chainingDelay"
:
800
,
"attackDelay"
:
500
},
"unimplementedWhiteList"
:[
1
,
...
...
neos.config.prod.json
View file @
e53123ee
...
...
@@ -74,7 +74,8 @@
},
"commonDelay"
:
200
,
"moveDelay"
:
500
,
"chainingDelay"
:
800
"chainingDelay"
:
800
,
"attackDelay"
:
500
},
"unimplementedWhiteList"
:[
1
,
...
...
src/service/duel/attack.ts
View file @
e53123ee
...
...
@@ -26,7 +26,7 @@ export default (attack: ygopro.StocGameMessage.MsgAttack) => {
if
(
target
)
{
attacker
.
attackTarget
=
{
sequence
:
attack
.
target_location
.
sequence
,
opponent
:
matStore
.
isMe
(
attack
.
target_location
.
controler
),
opponent
:
!
matStore
.
isMe
(
attack
.
target_location
.
controler
),
...
target
,
};
...
...
src/service/onSocketMessage.ts
View file @
e53123ee
...
...
@@ -127,7 +127,7 @@ function handleDelay(stoc: ygopro.YgoStocMsg): number {
}
else
if
(
stoc
.
stoc_game_msg
.
gameMsg
==
"
chaining
"
)
{
matStore
.
delay
=
NeosConfig
.
ui
.
chainingDelay
;
}
else
if
(
stoc
.
stoc_game_msg
.
gameMsg
==
"
attack
"
)
{
matStore
.
delay
=
500
+
5
00
;
matStore
.
delay
=
NeosConfig
.
ui
.
attackDelay
+
2
00
;
}
}
...
...
src/ui/Duel/PlayMat/Mat.tsx
View file @
e53123ee
...
...
@@ -142,7 +142,10 @@ function cardStateToRow(state: RenderCard): number {
}
if
(
state
.
attackTarget
)
{
// 正在攻击怪兽
return
cardStateToRow
(
state
.
attackTarget
)
-
0.5
*
(
state
.
opponent
?
1
:
-
1
);
return
(
cardStateToRow
(
state
.
attackTarget
)
-
0.2
*
(
state
.
attackTarget
.
opponent
?
-
1
:
1
)
);
}
if
(
state
.
opponent
)
{
switch
(
state
.
location
.
zone
)
{
...
...
@@ -185,6 +188,10 @@ function cardStateToRow(state: RenderCard): number {
function
cardStateToCol
(
state
:
RenderCard
):
number
{
if
(
state
.
focus
)
return
2
;
if
(
state
.
attackTarget
)
{
// 正在攻击对方怪兽
return
cardStateToCol
(
state
.
attackTarget
);
}
if
(
state
.
opponent
)
{
switch
(
state
.
location
.
zone
)
{
case
YgoZone
.
EXTRA
:
...
...
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