Merge pull request #178 from PeterHatch/special-class-bonus

Gain the class bonus when using event equipment that belongs to your class.
This commit is contained in:
Sabe Jones 2014-03-23 21:03:05 -05:00
commit 9faea5e9d7

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