mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-02 04:00:36 +00:00
Accounting for class bonus when sorting equipment by stats. closes #7701
This commit is contained in:
parent
08d7727881
commit
cc476a0dee
1 changed files with 8 additions and 0 deletions
|
|
@ -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] = [];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue