From 6f353e98889c4e1625f0d641ed35de9b3f978722 Mon Sep 17 00:00:00 2001 From: Erzangel Date: Thu, 16 May 2024 19:10:07 +0200 Subject: [PATCH 1/4] feat: restyle suicide effect & effects to enemies --- components/PlayerSlot.vue | 130 ++++++++++++++++++++++++++++++++++---- 1 file changed, 118 insertions(+), 12 deletions(-) diff --git a/components/PlayerSlot.vue b/components/PlayerSlot.vue index 8d95901..5dacea3 100644 --- a/components/PlayerSlot.vue +++ b/components/PlayerSlot.vue @@ -13,7 +13,8 @@ import goStore, { } from "~/netcode"; import { CardType, type Card } from "~/netcode/Card"; import type { Player } from "~/netcode/Player"; -import { CardEffects, type Effect } from "@/netcode/Effect"; +import { CardEffects, type Effect, EffectType } from "@/netcode/Effect"; +import type { Team } from "~/netcode/Team"; export interface Props { player: Player; @@ -75,6 +76,12 @@ function checkEndTurn() { } } +function damage_team_all(team: Team) { + for (let i = 0; i < (goStore.self?.turn?.damage_reserve ?? 0); i++) { + damage_team(team) + } +} + @@ -136,16 +143,26 @@ function checkEndTurn() {
- - +
+ + + +

@@ -165,7 +182,7 @@ function checkEndTurn() {