mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-26 05:53:39 -04:00
Added DPS to item view.
This commit is contained in:
parent
ef9a983e30
commit
9b2ee45a4d
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue