Skip to content

Commit

Permalink
fix: Damage analysis displaying healing bonus
Browse files Browse the repository at this point in the history
  • Loading branch information
wormtql committed May 19, 2022
1 parent e4f2a0d commit 60a630c
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "genshin_artifacts",
"version": "5.4.2",
"version": "5.5.0",
"private": true,
"scripts": {
"serve": "cross-env ENV_FILE=.env.development.yaml vue-cli-service serve",
Expand Down
19 changes: 19 additions & 0 deletions src/assets/_gen_buff.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ import ResMinus_image from "@image/misc/sword"



import HealingBonus_image from "@image/misc/sword"






Expand Down Expand Up @@ -415,6 +419,21 @@ export default {
],
},

"HealingBonus": {
name: "HealingBonus",
chs: "治疗加成",

badge: HealingBonus_image,

genre: "Common",
description: "",
config: [

{"default":0.0,"name":"p","title":"数值","type":"floatPercentageInput"},

],
},

"AlbedoTalent2": {
name: "AlbedoTalent2",
chs: "阿贝多-「瓶中人的天慧」",
Expand Down
12 changes: 10 additions & 2 deletions src/components/display/DamageAnalysis/DamageAnalysis.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
<div class="big-title bonus-region">加成</div>
<div class="header-row">
<damage-analysis-util
:arr="bonusState"
:arr="bonusRegionState"
:title="bonusRegionName"
></damage-analysis-util>
</div>
Expand Down Expand Up @@ -174,7 +174,7 @@ export default {
},
methods: {
setValue(analysis) {
console.log(analysis)
// console.log(analysis)
let map = {
"atkState": "atk",
"atkRatioState": "atk_ratio",
Expand Down Expand Up @@ -241,6 +241,14 @@ export default {
}
},
bonusRegionState() {
if (this.isHeal) {
return this.healingBonusState
} else {
return this.bonusState
}
},
bonusRegionName() {
if (this.isHeal) {
return "治疗加成"
Expand Down
2 changes: 1 addition & 1 deletion sub/mona_generate
2 changes: 1 addition & 1 deletion sub/mona_wasm

0 comments on commit 60a630c

Please sign in to comment.