Added DPS to item view.

This commit is contained in:
Nick Winter 2014-08-31 12:27:52 -07:00
parent ef9a983e30
commit 9b2ee45a4d

View file

@ -292,6 +292,9 @@ module.exports = class ThangType extends CocoModel
value = config[stat]
continue unless value?
stats[stat] = @formatStatDisplay stat, setTo: value
if stat is 'attackDamage'
dps = (value / (config.cooldown or 0.5)).toFixed(1)
stats[stat].display += " (#{dps} DPS)"
if config.programmableSnippets
props = props.concat config.programmableSnippets
props: props, stats: stats