mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-13 12:47:28 +01:00
Accounting for class bonus when sorting equipment by stats. closes #7701
This commit is contained in:
@@ -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] = [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user