Skip to content

Commit

Permalink
Merge pull request massif-press#2034 from msprijatelj/fix/heatfallOve…
Browse files Browse the repository at this point in the history
…rcharge

fix(Active Mode): dynamically determine overcharge pips
  • Loading branch information
jarena3 authored Jun 27, 2022
2 parents 3ed343e + c44e5fe commit 3942df4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@
<cc-tick-bar
:key="mech.CurrentOvercharge"
:current="mech.CurrentOvercharge"
:max="3"
:max="mech.OverchargeTrack.length-1"
large
no-input
clearable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
<cc-tick-bar
:key="mech.CurrentOvercharge"
:current="mech.CurrentOvercharge"
:max="3"
:max="mech.OverchargeTrack.length-1"
large
no-input
clearable
Expand All @@ -169,7 +169,7 @@
</span>
</cc-tick-bar>
<div class="caption overcharge--text font-weight-bold">
{{ overcharge[mech.CurrentOvercharge] }}
+{{ mech.OverchargeTrack[mech.CurrentOvercharge] }}
</div>
</v-col>
</v-row>
Expand All @@ -190,12 +190,5 @@ export default Vue.extend({
stressRollover: { type: Boolean },
hpResistance: { type: Boolean },
},
computed: {
overcharge(): string[] {
return this.mech.Pilot.has('corebonus', 'cb_heatfall_coolant_system')
? [' +1 ', ' +1d3 ', ' +1d6 ', '+1d6']
: [' +1 ', ' +1d3 ', ' +1d6 ', '+1d6+4']
},
},
})
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@
<cc-tick-bar
:key="mech.CurrentOvercharge"
:current="mech.CurrentOvercharge"
:max="3"
:max="mech.OverchargeTrack.length-1"
large
no-input
clearable
Expand Down

0 comments on commit 3942df4

Please sign in to comment.