From 31c236ece5640b34951fc72b435788fa5ba884aa Mon Sep 17 00:00:00 2001 From: Damnae Date: Fri, 1 Sep 2023 19:28:42 +0200 Subject: [PATCH] Add a warning when context is missing. --- src/scripts/sources/ability.ts | 2 -- src/scripts/sources/avatar.ts | 2 ++ src/style.css | 1 + src/views/abilities/ProvideEmptyContext.vue | 9 +++++- .../gamecore/blocks/ByCompareParamValue.vue | 31 +++++++++++++++++++ .../blocks/SetDynamicValueByVariateType.vue | 30 ++++++++++++++++++ src/views/gamecore/blocks/TriggerEffect.vue | 2 +- .../gamecore/blocks/TriggerEffectList.vue | 23 ++++++++++++++ 8 files changed, 96 insertions(+), 4 deletions(-) create mode 100644 src/views/gamecore/blocks/ByCompareParamValue.vue create mode 100644 src/views/gamecore/blocks/SetDynamicValueByVariateType.vue create mode 100644 src/views/gamecore/blocks/TriggerEffectList.vue diff --git a/src/scripts/sources/ability.ts b/src/scripts/sources/ability.ts index 28fc405..36df3c4 100644 --- a/src/scripts/sources/ability.ts +++ b/src/scripts/sources/ability.ts @@ -247,8 +247,6 @@ const contextTypeToPaths = ], Modifiers: [ - //'Config/ConfigGlobalModifier/GlobalModifier.json', - //'Config/ConfigGlobalModifier/GlobalModifier_System.json', 'Config/ConfigGlobalModifier/GlobalModifier_Common_Property.json', 'Config/ConfigGlobalModifier/GlobalModifier_Common_Specific.json', 'Config/ConfigGlobalModifier/GlobalModifier_Avatar.json', diff --git a/src/scripts/sources/avatar.ts b/src/scripts/sources/avatar.ts index 7a24a6e..0e68433 100644 --- a/src/scripts/sources/avatar.ts +++ b/src/scripts/sources/avatar.ts @@ -126,6 +126,8 @@ export async function getAvatars(commitId:string) : Promise avatar.SearchKeywords = [] avatar.SearchKeywords.push(avatar.AvatarName.Text.toLowerCase()) + avatar.SearchKeywords.push(avatar.DamageType.toLowerCase()) + avatar.SearchKeywords.push(avatar.AvatarBaseType.toLowerCase()) } const traceRanks = await retrieveJson('ExcelOutput/AvatarSkillTreeConfig.json', commitId, false) as AvatarSkillTreeConfig diff --git a/src/style.css b/src/style.css index f00fd89..27e5055 100644 --- a/src/style.css +++ b/src/style.css @@ -135,6 +135,7 @@ button:focus-visible { padding:.5rem; margin:.5rem 0; border-bottom: 1px solid #000; + position: relative; } nav.panel { diff --git a/src/views/abilities/ProvideEmptyContext.vue b/src/views/abilities/ProvideEmptyContext.vue index 9d013a4..93dde69 100644 --- a/src/views/abilities/ProvideEmptyContext.vue +++ b/src/views/abilities/ProvideEmptyContext.vue @@ -31,9 +31,16 @@ provide('createModifierRoute', (modifierId:string) : object => { return { name: props.modifierRouteName ?? 'modifier', params:{ commitId: props.commitId, modifierId: modifierId, } }}) -