diff --git a/backend/dataFiles/dcalc_0.db b/backend/dataFiles/dcalc_0.db index b3d6adfb..4006c0a2 100644 Binary files a/backend/dataFiles/dcalc_0.db and b/backend/dataFiles/dcalc_0.db differ diff --git a/backend/database/models.py b/backend/database/models.py index b5279358..1571923b 100644 --- a/backend/database/models.py +++ b/backend/database/models.py @@ -25,6 +25,7 @@ class SuitData(Base): Buffer = Column(Float) imageUrl = Column(Text) value = Column(Text) + bufferValue = Column(Text) fame = Column(Integer) diff --git a/frontend/src/api/info/type.ts b/frontend/src/api/info/type.ts index de9f61f3..3f92cd14 100644 --- a/frontend/src/api/info/type.ts +++ b/frontend/src/api/info/type.ts @@ -106,6 +106,7 @@ export interface ISuit { SkillAttack: number Buffer: number value: string + bufferValue: string } export interface IEnchantingInfo { diff --git a/frontend/src/components/dnf/Equipment/SuitInfo/index.vue b/frontend/src/components/dnf/Equipment/SuitInfo/index.vue index c82cd881..d4bae271 100644 --- a/frontend/src/components/dnf/Equipment/SuitInfo/index.vue +++ b/frontend/src/components/dnf/Equipment/SuitInfo/index.vue @@ -33,11 +33,17 @@
-
+
+ +
@@ -70,6 +76,14 @@ const mainAttr = computed(() => { const detail = computed(() => props.suit?.value.replace(/\[([^\[\]技能]+?)\]/g, '[$1]'), ) + +const bufferDetail = computed(() => { + const detail = props.suit?.bufferValue + if (!detail || detail == '-') return undefined + return props.suit?.bufferValue.replace( + /\[(?![^\]]*技能)[^\[\]]+\]/g, match => `${match}` + ) +})