1
0
forked from noxious/client

npm run format

This commit is contained in:
2025-02-01 16:18:33 +01:00
parent d65ceba66a
commit e53e154d16
8 changed files with 35 additions and 56 deletions

View File

@ -32,11 +32,7 @@ export const useMapStore = defineStore('map', {
if (index !== -1) this.characters[index] = updatedCharacter
},
// Property is mapCharacter key
updateCharacterProperty<K extends keyof MapCharacter>(
characterId: UUID,
property: K,
value: MapCharacter[K]
) {
updateCharacterProperty<K extends keyof MapCharacter>(characterId: UUID, property: K, value: MapCharacter[K]) {
const character = this.characters.find((char) => char.character.id === characterId)
if (character) {
character[property] = value