2022-07-31 21:42:16 +00:00
|
|
|
{{set avatar = $data[0] || {} }}
|
|
|
|
{{set {_res_path} = $data[1]}}
|
|
|
|
{{set weapon = avatar.weapon || {} }}
|
2022-08-01 21:15:37 +00:00
|
|
|
{{set talentMap = ['a','e','q'] }}
|
2022-07-31 21:42:16 +00:00
|
|
|
|
2022-08-01 21:15:37 +00:00
|
|
|
<div class="avatar-card elem-{{avatar.elem}} avatar-{{avatar.name}}">
|
2022-07-31 21:42:16 +00:00
|
|
|
<div class="card">
|
|
|
|
<div class="avatar-face item-icon star{{avatar.star==4?4:5}}">
|
|
|
|
<span class="img"
|
|
|
|
style="background-image:url({{_res_path}}/meta/character/{{avatar.name}}/face_2.png)"></span>
|
|
|
|
<span class="cons cons-{{avatar.cons}}">{{avatar.cons}}</span>
|
|
|
|
<div class="avatar-level">Lv{{avatar.level}}</div>
|
|
|
|
</div>
|
2022-08-01 21:15:37 +00:00
|
|
|
{{set talent = avatar.talent || {} }}
|
|
|
|
{{if talent.a && talent.a.current }}
|
|
|
|
<div class="avatar-talent">
|
|
|
|
{{each talentMap k}}
|
|
|
|
{{set t = talent[k] || {} }}
|
|
|
|
<span class="talent-item talent-{{k}} talent-{{t.crown?'crown':'none'}} talent-{{t.plus?'plus':'none'}}">{{t.current}}</span>
|
|
|
|
{{/each}}
|
|
|
|
</div>
|
|
|
|
{{else}}
|
|
|
|
<div class="avatar-talent"> -</div>
|
|
|
|
{{/if}}
|
2022-07-31 21:42:16 +00:00
|
|
|
<div class="avatar-detail">
|
|
|
|
<div class="item avatar-weapon">
|
|
|
|
<div class="item-icon star{{weapon.star}}">
|
|
|
|
<span class="img" style="background-image:url({{_res_path}}/meta/weapons/icon/{{weapon.name}}.png)"></span>
|
|
|
|
<span class="cons cons-{{weapon.affix}}">{{weapon.affix}}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="item avatar-artis artis{{avatar.sets.length}}">
|
|
|
|
|
|
|
|
<div class="artis item-icon">
|
|
|
|
{{each avatar.sets name}}
|
|
|
|
<span class="img"
|
|
|
|
style="background-image:url({{_res_path}}/meta/reliquaries/icon/{{name}}.png)"></span>
|
|
|
|
{{/each}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
2022-05-10 21:54:01 +00:00
|
|
|
</div>
|
2022-07-31 21:42:16 +00:00
|
|
|
|
2022-05-10 21:54:01 +00:00
|
|
|
</div>
|
2022-07-31 21:42:16 +00:00
|
|
|
|
|
|
|
|
|
|
|
</div>
|