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
315b0b42
Commit
315b0b42
authored
May 28, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix selectIdleCmd
parent
66abedf9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
25 deletions
+8
-25
src/service/duel/selectBattleCmd.ts
src/service/duel/selectBattleCmd.ts
+8
-11
src/stores/messageStore/methods/clearAllIdleInteractivities.ts
...tores/messageStore/methods/clearAllIdleInteractivities.ts
+0
-3
src/stores/messageStore/methods/clearAllPlaceInteradtivities.ts
...ores/messageStore/methods/clearAllPlaceInteradtivities.ts
+0
-9
src/stores/messageStore/methods/index.ts
src/stores/messageStore/methods/index.ts
+0
-2
No files found.
src/service/duel/selectBattleCmd.ts
View file @
315b0b42
import
{
ygopro
}
from
"
@/api
"
;
import
{
cardStore
,
clearAllIdleInteractivities
as
clearAllIdleInteractivities
,
type
Interactivity
,
InteractType
,
matStore
,
...
...
@@ -14,7 +13,6 @@ export default (selectBattleCmd: MsgSelectBattleCmd) => {
const
cmds
=
selectBattleCmd
.
battle_cmds
;
// 先清掉之前的互动性
clearAllIdleInteractivities
(
player
);
cardStore
.
inner
.
forEach
((
card
)
=>
{
card
.
idleInteractivities
=
[];
});
...
...
@@ -34,19 +32,18 @@ export default (selectBattleCmd: MsgSelectBattleCmd) => {
[
InteractType
.
ATTACK
]:
{
directAttackAble
:
data
.
direct_attackable
},
};
const
tmp
=
map
[
interactType
];
// 添加额外信息
matStore
.
in
(
location
)
.
of
(
player
)
.
addIdleInteractivity
(
sequence
,
{
const
target
=
cardStore
.
at
(
location
,
player
,
sequence
);
if
(
target
)
{
target
.
idleInteractivities
.
push
({
...
tmp
,
interactType
,
response
:
data
.
response
,
});
cardStore
.
at
(
location
,
player
,
sequence
).
idleInteractivities
.
push
(
{
...
tmp
,
interactType
,
response
:
data
.
response
,
}
);
}
else
{
console
.
warn
(
`<selectBattleCmd>target from zone=
${
location
}
, player=
${
player
}
, sequence=
${
sequence
}
is null`
);
}
}
else
{
console
.
warn
(
`Undefined InteractType`
);
}
...
...
src/stores/messageStore/methods/clearAllIdleInteractivities.ts
deleted
100644 → 0
View file @
66abedf9
export
const
clearAllIdleInteractivities
=
(
controller
:
number
)
=>
{
// TODO
};
src/stores/messageStore/methods/clearAllPlaceInteradtivities.ts
deleted
100644 → 0
View file @
66abedf9
import
{
ygopro
}
from
"
@/api
"
;
/** 清空所有place互动性,也可以删除某一个zone的互动性。zone为空则为清除所有。 */
export
const
clearAllPlaceInteradtivities
=
(
controller
:
number
,
zone
?:
ygopro
.
CardZone
)
=>
{
// TODO
};
src/stores/messageStore/methods/index.ts
View file @
315b0b42
export
*
from
"
./clearAllIdleInteractivities
"
;
export
*
from
"
./clearAllPlaceInteradtivities
"
;
export
*
from
"
./clearSelectActions
"
;
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