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
01b3faac
Commit
01b3faac
authored
May 20, 2024
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comment audio effect on summoning
parent
432e7baa
Pipeline
#27315
passed with stages
in 11 minutes and 34 seconds
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
13 deletions
+12
-13
src/service/duel/flipSummoning.ts
src/service/duel/flipSummoning.ts
+1
-2
src/service/duel/spSummoning.ts
src/service/duel/spSummoning.ts
+7
-9
src/service/duel/summoning.ts
src/service/duel/summoning.ts
+4
-2
No files found.
src/service/duel/flipSummoning.ts
View file @
01b3faac
import
{
ygopro
}
from
"
@/api
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
AudioActionType
,
playEffect
}
from
"
@/infra/audio
"
;
import
{
fetchEsHintMeta
}
from
"
@/stores
"
;
import
{
fetchEsHintMeta
}
from
"
@/stores
"
;
export
default
(
flipSummoning
:
ygopro
.
StocGameMessage
.
MsgFlipSummoning
)
=>
{
export
default
(
flipSummoning
:
ygopro
.
StocGameMessage
.
MsgFlipSummoning
)
=>
{
playEffect
(
AudioActionType
.
SOUND_FILP
);
//
playEffect(AudioActionType.SOUND_FILP);
fetchEsHintMeta
({
fetchEsHintMeta
({
originMsg
:
"
「[?]」反转召唤宣言时
"
,
originMsg
:
"
「[?]」反转召唤宣言时
"
,
cardID
:
flipSummoning
.
code
,
cardID
:
flipSummoning
.
code
,
...
...
src/service/duel/spSummoning.ts
View file @
01b3faac
import
{
fetchCard
,
ygopro
}
from
"
@/api
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
TYPE_TOKEN
}
from
"
@/common
"
;
import
{
AudioActionType
,
playEffect
}
from
"
@/infra/audio
"
;
import
{
fetchEsHintMeta
}
from
"
@/stores
"
;
import
{
fetchEsHintMeta
}
from
"
@/stores
"
;
export
default
(
spSummoning
:
ygopro
.
StocGameMessage
.
MsgSpSummoning
)
=>
{
export
default
(
spSummoning
:
ygopro
.
StocGameMessage
.
MsgSpSummoning
)
=>
{
const
card
=
fetchCard
(
spSummoning
.
code
);
//
const card = fetchCard(spSummoning.code);
if
(
card
.
data
.
type
&&
card
.
data
.
type
&
TYPE_TOKEN
)
{
//
if (card.data.type && card.data.type & TYPE_TOKEN) {
playEffect
(
AudioActionType
.
SOUND_TOKEN
);
//
playEffect(AudioActionType.SOUND_TOKEN);
}
else
{
//
} else {
playEffect
(
AudioActionType
.
SOUND_SPECIAL_SUMMON
);
//
playEffect(AudioActionType.SOUND_SPECIAL_SUMMON);
}
//
}
fetchEsHintMeta
({
fetchEsHintMeta
({
originMsg
:
"
「[?]」特殊召唤宣言时
"
,
originMsg
:
"
「[?]」特殊召唤宣言时
"
,
cardID
:
spSummoning
.
code
,
cardID
:
spSummoning
.
code
,
...
...
src/service/duel/summoning.ts
View file @
01b3faac
import
{
ygopro
}
from
"
@/api
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
AudioActionType
,
playEffect
}
from
"
@/infra/audio
"
;
import
{
fetchEsHintMeta
}
from
"
@/stores
"
;
import
{
fetchEsHintMeta
}
from
"
@/stores
"
;
export
default
(
summoning
:
ygopro
.
StocGameMessage
.
MsgSummoning
)
=>
{
export
default
(
summoning
:
ygopro
.
StocGameMessage
.
MsgSummoning
)
=>
{
playEffect
(
AudioActionType
.
SOUND_SUMMON
);
/* 因为现在Neos动画架构的问题,这里播放音效的话会滞后于移动动画,
* 因此这里先注释掉,等解决掉上述问题后再加上召唤的音效。
* */
// playEffect(AudioActionType.SOUND_SUMMON);
fetchEsHintMeta
({
fetchEsHintMeta
({
originMsg
:
"
「[?]」通常召唤宣言时
"
,
originMsg
:
"
「[?]」通常召唤宣言时
"
,
cardID
:
summoning
.
code
,
cardID
:
summoning
.
code
,
...
...
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