From 25427fcf4c4398984fcd2d2f18b049995442808f Mon Sep 17 00:00:00 2001 From: Benjamin Schenker Date: Sun, 8 Mar 2015 16:31:53 -0500 Subject: [PATCH 1/4] Fix Mana rounding on the stats page. Fixes #4820 --- website/views/shared/profiles/stats.jade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/views/shared/profiles/stats.jade b/website/views/shared/profiles/stats.jade index df1d72404f..7c9e3d18db 100644 --- a/website/views/shared/profiles/stats.jade +++ b/website/views/shared/profiles/stats.jade @@ -7,7 +7,7 @@ table.table.table-striped tr(ng-if='profile.stats.lvl >= 10 && !profile.preferences.disableClasses') td strong=env.t('mana') - | : {{profile.stats.mp | number:0}} / {{profile._statsComputed.maxMP}} + | : {{Math.floor(profile.stats.mp)}} / {{profile._statsComputed.maxMP}} tr td strong=env.t('gold') From 963ddd76944c9adca1a4babdca26db06fec48c3c Mon Sep 17 00:00:00 2001 From: Benjamin Schenker Date: Sun, 8 Mar 2015 19:11:08 -0500 Subject: [PATCH 2/4] Fix Health and EXP rounding on stats page to match header --- website/views/shared/profiles/stats.jade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/views/shared/profiles/stats.jade b/website/views/shared/profiles/stats.jade index 7c9e3d18db..47335e2533 100644 --- a/website/views/shared/profiles/stats.jade +++ b/website/views/shared/profiles/stats.jade @@ -3,7 +3,7 @@ table.table.table-striped tr td strong=env.t('health') - | : {{profile.stats.hp | number:0}} / 50 + | : {{Math.ceil(profile.stats.hp)}} / 50 tr(ng-if='profile.stats.lvl >= 10 && !profile.preferences.disableClasses') td strong=env.t('mana') @@ -19,7 +19,7 @@ table.table.table-striped tr td strong=env.t('experience') - | : {{profile.stats.exp | number:0}} / {{Shared.tnl(profile.stats.lvl)}} + | : {{Math.floor(profile.stats.exp)}} / {{Shared.tnl(profile.stats.lvl)}} // FIXME get translations working before can use this unless mobile From 5bdf1564e67d88e991f69908a5bb8351261174da Mon Sep 17 00:00:00 2001 From: Benjamin Schenker Date: Sun, 8 Mar 2015 19:13:48 -0500 Subject: [PATCH 3/4] Remove rounding of gold to match the menu --- website/views/shared/profiles/stats.jade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/views/shared/profiles/stats.jade b/website/views/shared/profiles/stats.jade index 47335e2533..f1cee81b5b 100644 --- a/website/views/shared/profiles/stats.jade +++ b/website/views/shared/profiles/stats.jade @@ -11,7 +11,7 @@ table.table.table-striped tr td strong=env.t('gold') - | : {{profile.stats.gp | number:0}} + | : {{profile.stats.gp}} tr td strong=env.t('level') From bfd16dd7ece5aa618664381ee9bc47441334a702 Mon Sep 17 00:00:00 2001 From: Benjamin Schenker Date: Sun, 8 Mar 2015 19:21:04 -0500 Subject: [PATCH 4/4] Fix rounding of gold on stats page to round down --- website/views/shared/profiles/stats.jade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/views/shared/profiles/stats.jade b/website/views/shared/profiles/stats.jade index f1cee81b5b..c01a86a0dd 100644 --- a/website/views/shared/profiles/stats.jade +++ b/website/views/shared/profiles/stats.jade @@ -11,7 +11,7 @@ table.table.table-striped tr td strong=env.t('gold') - | : {{profile.stats.gp}} + | : {{Math.floor(profile.stats.gp)}} tr td strong=env.t('level')