habitica/views/shared/profiles/stats.jade

42 lines
1.4 KiB
Text
Raw Normal View History

h4.stats-equipment Equipment
p(ng-repeat='(k,v) in user.items.gear.equipped', ng-init='piece=Content.gear.flat[v]', ng-show='piece')
strong {{piece.text}}: 
span(ng-repeat='stat in ["str","con","per","int"]', ng-show='piece[stat]') {{piece[stat]}}{{stat}} 
hr
2013-09-01 17:55:45 +00:00
h4 Stats
p
2013-11-17 15:36:38 +00:00
strong Health
2013-09-01 17:55:45 +00:00
| : {{profile.stats.hp | number:0}} / 50
p
2013-11-17 15:36:38 +00:00
strong Gold
2013-09-01 17:55:45 +00:00
| : {{profile.stats.gp | number:0}}
p
2013-11-17 15:36:38 +00:00
strong Level
2013-09-01 17:55:45 +00:00
| : {{profile.stats.lvl}}
p
2013-11-17 15:36:38 +00:00
strong Experience
| : {{profile.stats.exp | number:0}} / {{Shared.tnl(profile.stats.lvl)}}
hr
h4 Attributes
table.table.table-striped
tr(ng-repeat='(k,v) in {str:"Strength",int:"Intelligence",con:"Constitution",per:"Perception"}')
td
strong {{v}}: {{profile._statsComputed[k]}}
td
ul
li Allocated: {{profile.stats[k] || 0}}
li
| Gear: {{Content.gear.flat[profile.items.gear.equipped.weapon][k] + Content.gear.flat[profile.items.gear.equipped.armor][k] + Content.gear.flat[profile.items.gear.equipped.head][k] + Content.gear.flat[profile.items.gear.equipped.shield][k] || 0}} 
i.icon-question-sign(popover-title='Class Gear', popover-trigger='mouseenter', popover-placement='right', popover="Wearing your class's gear gives that stat a 1.5% bonus, in addition to this number.")
li Level: {{(profile.stats.lvl - 1) / 2}}
li Buffs: {{profile.stats.buffs[k] || 0}}
h4
hr
h4 Pets
2013-09-01 17:55:45 +00:00
p
strong Pets Found
| : {{profile.petCount}}