mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-31 19:20:25 +00:00
Gain the class bonus when using event equipment that belongs to your class.
This commit is contained in:
parent
43555cef30
commit
e019985e81
1 changed files with 1 additions and 1 deletions
|
|
@ -1327,7 +1327,7 @@ api.wrap = (user, main=true) ->
|
|||
if ~path.indexOf('items.gear')
|
||||
# get the gear stat, and multiply it by 1.5 if it's class-gear
|
||||
item = content.gear.flat[val]
|
||||
(+item?[stat] or 0) * (if item?.klass is user.stats.class then 1.5 else 1)
|
||||
(+item?[stat] or 0) * (if item?.klass is user.stats.class || item?.specialClass is user.stats.class then 1.5 else 1)
|
||||
else
|
||||
+val[stat] or 0
|
||||
, 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue