From c040a5764ed70e1b9f4c0ff1b603a0e32ee8d549 Mon Sep 17 00:00:00 2001 From: Unknown Date: Fri, 19 May 2023 16:06:34 +0200 Subject: [PATCH 01/24] Run encounter in test mode --- src/components/combat/Targets.vue | 425 ++++++++++-------- src/components/combat/Turns.vue | 334 ++++++++------ src/components/slides/encounter/TestMode.vue | 21 + src/router/routes.js | 11 + src/store/modules/runEncounter.js | 149 +++--- src/views/RunEncounter.vue | 4 +- .../UserContent/Encounters/Edit/index.vue | 310 +++++++------ 7 files changed, 719 insertions(+), 535 deletions(-) create mode 100644 src/components/slides/encounter/TestMode.vue diff --git a/src/components/combat/Targets.vue b/src/components/combat/Targets.vue index e8ff0266a..86b60b493 100644 --- a/src/components/combat/Targets.vue +++ b/src/components/combat/Targets.vue @@ -1,54 +1,66 @@ \ No newline at end of file +} + From c26d8df3d39c7ebf2a0a6d357c5d8e33798e22e1 Mon Sep 17 00:00:00 2001 From: Unknown Date: Fri, 26 May 2023 11:12:56 +0200 Subject: [PATCH 13/24] Code smells resolved --- src/components/combat/side/Dmg.vue | 3 +-- src/store/modules/runEncounter.js | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/combat/side/Dmg.vue b/src/components/combat/side/Dmg.vue index d86c5256d..63ef88a48 100644 --- a/src/components/combat/side/Dmg.vue +++ b/src/components/combat/side/Dmg.vue @@ -98,8 +98,7 @@ export default { var amount = this._meters[type][key][type]; total = total + amount; } - var percentage = Math.floor((input / total) * 100); - return percentage; + return Math.floor((input / total) * 100); }, }, }; diff --git a/src/store/modules/runEncounter.js b/src/store/modules/runEncounter.js index d62a7613e..ac4f9f313 100644 --- a/src/store/modules/runEncounter.js +++ b/src/store/modules/runEncounter.js @@ -1,8 +1,7 @@ import { abilities, skills } from "src/utils/generalConstants"; -import { uuid } from "src/utils/generalFunctions"; +import { uuid, calc_mod } from "src/utils/generalFunctions"; import { monsterMixin } from "src/mixins/monster"; import { db } from "src/firebase"; -import { calc_mod } from "src/utils/generalFunctions"; import Vue from "vue"; const demoEncounter = { From af249fc16fe5856fb11597fa3cf0da168cb4553c Mon Sep 17 00:00:00 2001 From: Unknown Date: Fri, 26 May 2023 11:30:26 +0200 Subject: [PATCH 14/24] Open live initiative from campaigns overview side --- src/components/ContentSideRight.vue | 452 +++++++++++++++------------- 1 file changed, 241 insertions(+), 211 deletions(-) diff --git a/src/components/ContentSideRight.vue b/src/components/ContentSideRight.vue index b2b91b3e9..0ce06a19c 100644 --- a/src/components/ContentSideRight.vue +++ b/src/components/ContentSideRight.vue @@ -1,135 +1,160 @@ \ No newline at end of file + .image-title { + font-size: 30px; + line-height: 35px; + opacity: 1; + font-weight: bold; + text-shadow: 2px 2px 5px $black; + } + } +} + From 9ccd397ea9c6e4bae510a7c0e6850bb5d47704f4 Mon Sep 17 00:00:00 2001 From: Unknown Date: Fri, 26 May 2023 12:01:20 +0200 Subject: [PATCH 15/24] Demo variable was set in mixin and component itself --- src/components/combat/actions/custom/CustomRoll.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/combat/actions/custom/CustomRoll.vue b/src/components/combat/actions/custom/CustomRoll.vue index 369e16c0d..86c52b2eb 100644 --- a/src/components/combat/actions/custom/CustomRoll.vue +++ b/src/components/combat/actions/custom/CustomRoll.vue @@ -116,7 +116,6 @@ export default { data() { return { damage_types: damage_types, - demo: this.$route.name === "Demo", userId: this.$store.getters.user ? this.$store.getters.user.uid : undefined, campaignId: this.$route.params.campid, encounterId: this.$route.params.encid, From b75e73d0b2f7af52c56655d0ad12bf965f6a9d74 Mon Sep 17 00:00:00 2001 From: Harm Manders Date: Fri, 2 Jun 2023 12:07:55 +0200 Subject: [PATCH 16/24] added a patreon link --- src/components/ImportContent.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/ImportContent.vue b/src/components/ImportContent.vue index e0c61eb20..eecda9857 100644 --- a/src/components/ImportContent.vue +++ b/src/components/ImportContent.vue @@ -162,8 +162,11 @@ Insufficient spell slots. You're trying to import {{ Object.keys(this.custom_spells).length }} spells,
but have only {{ availableSpellSlots }} slots available. - You can still import the selected NPCs if you deselect + +