blob: ccf3147f3a3e47e288c308b4a19479da4c65abdf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<template>
<figure class="image is-64x64">
<img :src="'dist/assets/talent-icons-small/' + hero + '/' + hero + '_' + rarity + '.png'" :alt="hero + ' ' + rarity">
</figure>
</template>
<script>
import Vue from 'vue';
import * as maps from './maps/maps';
export default Vue.component('talent-image', {
props: [ 'entry' ],
data: function() {
return {
hero: maps.getHero(this.entry.Actor),
rarity: maps.getTalentRarity(this.entry.Talent),
};
},
});
</script>
|