Accounting for class bonus when sorting equipment by stats. closes #7701

This commit is contained in:
Husman
2016-06-22 19:28:44 -07:00
parent 08d7727881
commit cc476a0dee

View File

@@ -62,6 +62,14 @@ habitrpg.controller("InventoryCtrl",
var item = Content.gear.flat[key];
if (item.klass == User.user.stats.class)
{
item.str = item.str * 1.5;
item.con = item.con * 1.5;
item.per = item.per * 1.5;
item.int = item.int * 1.5;
}
if (!$scope.gearByClass[item.klass]) {
$scope.gearByClass[item.klass] = [];
}