Commit 01b3faac authored by Chunchi Che's avatar Chunchi Che

comment audio effect on summoning

parent 432e7baa
Pipeline #27315 passed with stages
in 11 minutes and 34 seconds
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,
......
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,
......
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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment