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
fd0f9b60
Commit
fd0f9b60
authored
Jan 15, 2023
by
chechunchi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update service
parent
676864b0
Pipeline
#19563
passed with stages
in 4 minutes and 47 seconds
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
5 deletions
+20
-5
src/reducers/duel/magicSlice.ts
src/reducers/duel/magicSlice.ts
+2
-2
src/reducers/duel/mod.ts
src/reducers/duel/mod.ts
+2
-0
src/reducers/duel/monstersSlice.ts
src/reducers/duel/monstersSlice.ts
+2
-2
src/service/duel/selectIdleCmd.ts
src/service/duel/selectIdleCmd.ts
+14
-1
No files found.
src/reducers/duel/magicSlice.ts
View file @
fd0f9b60
...
@@ -103,12 +103,12 @@ export const clearMagicPlaceInteractivitiesImpl: CaseReducer<
...
@@ -103,12 +103,12 @@ export const clearMagicPlaceInteractivitiesImpl: CaseReducer<
export
const
addMagicIdleInteractivitiesImpl
:
CaseReducer
<
export
const
addMagicIdleInteractivitiesImpl
:
CaseReducer
<
DuelState
,
DuelState
,
PayloadAction
<
{
PayloadAction
<
{
control
er
:
number
;
play
er
:
number
;
sequence
:
number
;
sequence
:
number
;
interactivity
:
Interactivity
<
number
>
;
interactivity
:
Interactivity
<
number
>
;
}
>
}
>
>
=
(
state
,
action
)
=>
{
>
=
(
state
,
action
)
=>
{
const
magics
=
judgeSelf
(
action
.
payload
.
control
er
,
state
)
const
magics
=
judgeSelf
(
action
.
payload
.
play
er
,
state
)
?
state
.
meMagics
?
state
.
meMagics
:
state
.
opMagics
;
:
state
.
opMagics
;
extendIdleInteractivities
(
extendIdleInteractivities
(
...
...
src/reducers/duel/mod.ts
View file @
fd0f9b60
...
@@ -226,6 +226,8 @@ export const {
...
@@ -226,6 +226,8 @@ export const {
initMagics
,
initMagics
,
addMagicPlaceInteractivities
,
addMagicPlaceInteractivities
,
clearMagicPlaceInteractivities
,
clearMagicPlaceInteractivities
,
addMagicIdleInteractivities
,
clearMagicIdleInteractivities
,
removeMagic
,
removeMagic
,
removeHand
,
removeHand
,
initCemetery
,
initCemetery
,
...
...
src/reducers/duel/monstersSlice.ts
View file @
fd0f9b60
...
@@ -113,12 +113,12 @@ export const clearMonsterPlaceInteractivitiesImpl: CaseReducer<
...
@@ -113,12 +113,12 @@ export const clearMonsterPlaceInteractivitiesImpl: CaseReducer<
export
const
addMonsterIdleInteractivitiesImpl
:
CaseReducer
<
export
const
addMonsterIdleInteractivitiesImpl
:
CaseReducer
<
DuelState
,
DuelState
,
PayloadAction
<
{
PayloadAction
<
{
control
er
:
number
;
play
er
:
number
;
sequence
:
number
;
sequence
:
number
;
interactivity
:
Interactivity
<
number
>
;
interactivity
:
Interactivity
<
number
>
;
}
>
}
>
>
=
(
state
,
action
)
=>
{
>
=
(
state
,
action
)
=>
{
const
monsters
=
judgeSelf
(
action
.
payload
.
control
er
,
state
)
const
monsters
=
judgeSelf
(
action
.
payload
.
play
er
,
state
)
?
state
.
meMonsters
?
state
.
meMonsters
:
state
.
opMonsters
;
:
state
.
opMonsters
;
extendIdleInteractivities
(
extendIdleInteractivities
(
...
...
src/service/duel/selectIdleCmd.ts
View file @
fd0f9b60
...
@@ -4,6 +4,10 @@ import { Interactivity, InteractType } from "../../reducers/duel/generic";
...
@@ -4,6 +4,10 @@ import { Interactivity, InteractType } from "../../reducers/duel/generic";
import
{
import
{
clearHandsIdleInteractivity
,
clearHandsIdleInteractivity
,
addHandsIdleInteractivity
,
addHandsIdleInteractivity
,
addMonsterIdleInteractivities
,
addMagicIdleInteractivities
,
clearMonsterIdleInteractivities
,
clearMagicIdleInteractivities
,
}
from
"
../../reducers/duel/mod
"
;
}
from
"
../../reducers/duel/mod
"
;
import
MsgSelectIdleCmd
=
ygopro
.
StocGameMessage
.
MsgSelectIdleCmd
;
import
MsgSelectIdleCmd
=
ygopro
.
StocGameMessage
.
MsgSelectIdleCmd
;
import
{
ActionCreatorWithPayload
}
from
"
@reduxjs/toolkit
"
;
import
{
ActionCreatorWithPayload
}
from
"
@reduxjs/toolkit
"
;
...
@@ -12,8 +16,10 @@ export default (selectIdleCmd: MsgSelectIdleCmd, dispatch: AppDispatch) => {
...
@@ -12,8 +16,10 @@ export default (selectIdleCmd: MsgSelectIdleCmd, dispatch: AppDispatch) => {
const
player
=
selectIdleCmd
.
player
;
const
player
=
selectIdleCmd
.
player
;
const
cmds
=
selectIdleCmd
.
idle_cmds
;
const
cmds
=
selectIdleCmd
.
idle_cmds
;
// 先清掉之前的
手牌
互动性
// 先清掉之前的互动性
dispatch
(
clearHandsIdleInteractivity
(
player
));
dispatch
(
clearHandsIdleInteractivity
(
player
));
dispatch
(
clearMonsterIdleInteractivities
(
player
));
dispatch
(
clearMagicIdleInteractivities
(
player
));
const
dispatcher
=
(
const
dispatcher
=
(
idleData
:
MsgSelectIdleCmd
.
IdleCmd
.
IdleData
,
idleData
:
MsgSelectIdleCmd
.
IdleCmd
.
IdleData
,
...
@@ -66,6 +72,13 @@ export default (selectIdleCmd: MsgSelectIdleCmd, dispatch: AppDispatch) => {
...
@@ -66,6 +72,13 @@ export default (selectIdleCmd: MsgSelectIdleCmd, dispatch: AppDispatch) => {
break
;
break
;
}
}
case
ygopro
.
CardZone
.
MZONE
:
{
case
ygopro
.
CardZone
.
MZONE
:
{
dispatcher
(
data
,
interactType
,
addMonsterIdleInteractivities
);
break
;
}
case
ygopro
.
CardZone
.
SZONE
:
{
dispatcher
(
data
,
interactType
,
addMagicIdleInteractivities
);
break
;
break
;
}
}
default
:
{
default
:
{
...
...
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