Add Critical Hit notificaiton via user._tmp

This commit is contained in:
Cole Gleason 2014-01-02 13:36:49 -06:00
parent 8d2d1e9276
commit 737fbd737c

View file

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