npm update, worked on zone effects

This commit is contained in:
2024-10-12 21:36:18 +02:00
parent b264ab3e40
commit f2e439831a
10 changed files with 178 additions and 92 deletions

View File

@ -1,6 +1,6 @@
import { defineStore } from 'pinia'
import { useGameStore } from '@/stores/gameStore'
import type { Zone, Object, Tile, ZoneObject } from '@/types'
import type { Zone, Object, Tile, ZoneObject, ZoneEffects } from '@/types'
export type TeleportSettings = {
toZoneId: number
@ -9,11 +9,6 @@ export type TeleportSettings = {
toRotation: number
}
export type ZoneEffects = {
zoneEffect: string
zoneEffectPercentage: number
}
export const useZoneEditorStore = defineStore('zoneEditor', {
state: () => {
return {
@ -39,10 +34,7 @@ export const useZoneEditorStore = defineStore('zoneEditor', {
width: 0,
height: 0,
pvp: false,
zoneEffects: {
zoneEffect: '',
zoneEffectPercentage: 0
} as ZoneEffects
effects: [] as ZoneEffects[]
},
teleportSettings: {
toZoneId: 0,