Skip to content

Commit

Permalink
在设置符文或召唤师技能时将发送一条仅自己可见的信息
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanxven committed Aug 11, 2024
1 parent 50244df commit 7ff7d12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/renderer/src-auxiliary-window/views/opgg/OpggChampion.vue
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ const handleSetSummonerSpells = async (ids: number[]) => {
if (chat.conversations.championSelect) {
chatSend(
chat.conversations.championSelect.id,
`[League Akari] 已设置召唤师技能: ${gameData.summonerSpells[newSpell1Id]?.name} | ${gameData.summonerSpells[newSpell2Id]?.name}`,
`[League Akari] 已设置召唤师技能: [OP.GG] ${gameData.summonerSpells[newSpell1Id]?.name} | ${gameData.summonerSpells[newSpell2Id]?.name}`,
'celebration'
)
}
Expand Down Expand Up @@ -890,7 +890,7 @@ const handleSetRunes = async (r: {
if (chat.conversations.championSelect) {
chatSend(
chat.conversations.championSelect.id,
`[League Akari] 已${addedNew ? '添加' : '替换'}符文页: ${gameData.champions[info.value?.id]?.name || '-'}${positionName ? ` - ${positionName}` : ''}`,
`[League Akari] 已${addedNew ? '添加' : '替换'}符文页: [OP.GG] ${gameData.champions[info.value?.id]?.name || '-'}${positionName ? ` - ${positionName}` : ''}`,
'celebration'
)
}
Expand Down
6 changes: 1 addition & 5 deletions src/shared/renderer/modules/external-data-source/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { GtimgHeroListJs, Hero } from '@shared/external-data-source/gtimg'
import { ChampBalanceMapV1 } from '@shared/external-data-source/normalized/champ-balance'
import { AvailableServersMap } from '@shared/external-data-source/sgp'
import { defineStore } from 'pinia'
import { computed, shallowRef, watchEffect } from 'vue'
import { computed, shallowRef } from 'vue'

export const useExternalDataSourceStore = defineStore('module:external-data-source', () => {
const balanceData = shallowRef<{
Expand Down Expand Up @@ -31,10 +31,6 @@ export const useExternalDataSourceStore = defineStore('module:external-data-sour
}
})

watchEffect(() => {
console.log('heroListMap', heroListMap.value)
})

const sgpAvailability = shallowRef({
currentRegion: '',
currentRsoPlatform: '',
Expand Down

0 comments on commit 7ff7d12

Please sign in to comment.