From 737fbd737ce6d8159aa381e7d4858487494094db Mon Sep 17 00:00:00 2001 From: Cole Gleason Date: Thu, 2 Jan 2014 13:36:49 -0600 Subject: [PATCH] Add Critical Hit notificaiton via user._tmp --- script/index.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/script/index.coffee b/script/index.coffee index f6941201b2..e4eb43f70e 100644 --- a/script/index.coffee +++ b/script/index.coffee @@ -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 =====