diff --git a/src/components/getValorDora.ts b/src/components/getValorDora.ts index 11a6ec8..80de8b7 100644 --- a/src/components/getValorDora.ts +++ b/src/components/getValorDora.ts @@ -3,7 +3,7 @@ import { RiMaJonState } from "@/store"; import { computed, ComputedRef } from "vue"; export const getClaseDora = (valor: ComputedRef, store: Store) => computed(() => { - const [dora1, dora2] = store.state.dora; + const [dora1] = store.state.dora; const valorG = (valor.value >>> 1) << 1; @@ -13,11 +13,5 @@ export const getClaseDora = (valor: ComputedRef, store: Store>> 1) << 1; - - if (valorG === cartaBonus) return "c-carta-bonus"; - } - return ""; }); diff --git a/src/views/Juego/Juego.vue b/src/views/Juego/Juego.vue index f17de97..50c3cef 100644 --- a/src/views/Juego/Juego.vue +++ b/src/views/Juego/Juego.vue @@ -60,7 +60,6 @@ export default defineComponent({ const esPantallaCompleta = ref(false); const dora = ref([0, 0, 0, 0, 0]); - const doraOculto = ref([0, 0, 0, 0, 0]); const turnoActual = ref(undefined); const cartasRestantes = ref(58); const cartaDescartada = ref(false); @@ -115,8 +114,7 @@ export default defineComponent({ const d: DatosJuego = info.datos; datosJuego.value = d; dora.value = d.dora; - doraOculto.value = info.datos.doraOculto; - store.commit("setDora", [info.datos.dora, info.datos.doraOculto]); + store.commit("setDora", [info.datos.dora]); turnosDora.value = info.datos.turnosHastaDora; dragonPartida.value = d.dragonPartida; @@ -153,7 +151,6 @@ export default defineComponent({ const d = info.datos; console.log(info.datos); dora.value = info.datos.dora; - doraOculto.value = info.datos.doraOculto; store.commit("setDora", [...info.datos.dora, ...info.datos.doraOculto]); cartaDescartada.value = false; turnosDora.value = info.datos.turnosHastaDora; @@ -206,7 +203,6 @@ export default defineComponent({ const obtClaveMap = (s: string) => obtClave(map, s); return { dora, - doraOculto, turnosDora, cartasRestantes, dragonPartida, diff --git a/src/views/Juego/components/contenedor-dora.vue b/src/views/Juego/components/contenedor-dora.vue index 6e76a10..48cfbf3 100644 --- a/src/views/Juego/components/contenedor-dora.vue +++ b/src/views/Juego/components/contenedor-dora.vue @@ -35,13 +35,7 @@ export default defineComponent({ } return narr; }); - const doraAbierto = computed(() => { - const narr = [...store.state.dora[1]]; - for (let i = narr.length; i < 5; i++) { - narr.push(0); - } - return narr; - }); + const doraAbierto = [0, 0, 0, 0, 0]; return { doraCerrado, diff --git a/src/views/Juego/components/mano.vue b/src/views/Juego/components/mano.vue index 31e257b..657755a 100644 --- a/src/views/Juego/components/mano.vue +++ b/src/views/Juego/components/mano.vue @@ -1,7 +1,7 @@