npm update, worked on zone effects
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user