mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 12:02:13 +00:00
Merge pull request #70 from colegleason/crit-notif
Add Critical Hit notificaiton via user._tmp
This commit is contained in:
commit
72f021b4bc
1 changed files with 2 additions and 0 deletions
|
|
@ -761,6 +761,8 @@ api.wrap = (user) ->
|
|||
addPoints = ->
|
||||
# ===== CRITICAL HITS =====
|
||||
_crit = user.fns.crit()
|
||||
# if there was a crit, alert the user via notification
|
||||
user._tmp.crit = _crit if _crit > 1
|
||||
|
||||
# Exp Modifier
|
||||
# ===== Intelligence =====
|
||||
|
|
|
|||
Loading…
Reference in a new issue