Skip to content

Commit

Permalink
fix(Mech Sheet): fixed an error that would pop up when equipping exte…
Browse files Browse the repository at this point in the history
…rnal batteries on a barbarossa

Closes #844
  • Loading branch information
jarena-qsr committed May 20, 2020
1 parent 2d3805b commit 5a688e4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/classes/mech/Mech.ts
Original file line number Diff line number Diff line change
Expand Up @@ -787,9 +787,7 @@ class Mech implements IActor {
}
if (this._pilot.has('Talent', 't_engineer')) {
const id = `mw_prototype_${this._pilot.getTalentRank('t_engineer')}`
console.log(id)
const engWeapon = store.getters.referenceByID('MechWeapons', id)
console.log(engWeapon)
intg.push(new IntegratedMount(engWeapon, 'Engineer'))
}
return intg
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,14 @@
<div v-if="item">
<equipment-header :item="item" :color="color" :use-bonus="mech.Pilot.LimitedBonus">
<div class="d-inline mx-2">
<cc-range-element small :range="item.getTotalRange(mech)" class="d-inline" />
<cc-range-element
v-if="item.Range"
small
:range="item.getTotalRange(mech)"
class="d-inline"
/>
<cc-damage-element
v-if="item.Damage"
small
:damage="item.Damage"
:type-override="item.DamageTypeOverride"
Expand Down

0 comments on commit 5a688e4

Please sign in to comment.