From 2175d7733d12e13e5a265c1a5832b98b3fd7ca11 Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Mon, 16 Dec 2013 14:18:31 -0700 Subject: [PATCH] classes: better stats breakdown, including buffs --- views/shared/profiles/stats.jade | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/views/shared/profiles/stats.jade b/views/shared/profiles/stats.jade index ae5c15962a..f433c73a71 100644 --- a/views/shared/profiles/stats.jade +++ b/views/shared/profiles/stats.jade @@ -3,6 +3,7 @@ p(ng-repeat='(k,v) in user.items.gear.equipped', ng-init='piece=Content.gear.fla strong {{piece.text}}:  span(ng-repeat='stat in ["str","con","per","int"]', ng-show='piece[stat]') {{piece[stat]}}{{stat}}  +hr h4 Stats p strong Health @@ -17,11 +18,24 @@ p strong Experience | : {{profile.stats.exp | number:0}} / {{Shared.tnl(profile.stats.lvl)}} +hr h4 Attributes -i.icon-question-sign(popover-title='Attributes Breakdown', popover-trigger='mouseenter', popover-placement='right', popover="Attributes are calculated as (allocated stat-points) + (gear stats) + (buffs) + (1.5% bonus if your class's gear") -p(ng-repeat='(k,v) in {str:"Strength",int:"Intelligence",con:"Constitution",per:"Perception"}') - strong {{v}}: {{profile._statsComputed[k]}} +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 p strong Pets Found