Gain the class bonus when using event equipment that belongs to your class.

This commit is contained in:
Peter Hatch 2014-03-23 15:29:47 -07:00
parent 43555cef30
commit e019985e81

View file

@ -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