From fe018309d0b81afcb4ef7db2c8d1fb96714b6aab Mon Sep 17 00:00:00 2001 From: Nick Winter Date: Wed, 19 Nov 2014 13:47:44 -0800 Subject: [PATCH] Don't show blurbs for aggro messages. Big announces action blurbs for heroes. --- app/lib/surface/Lank.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/lib/surface/Lank.coffee b/app/lib/surface/Lank.coffee index 731119d1c..4418ffbea 100644 --- a/app/lib/surface/Lank.coffee +++ b/app/lib/surface/Lank.coffee @@ -664,7 +664,9 @@ module.exports = Lank = class Lank extends CocoClass updateLabels: -> return unless @thang blurb = if @thang.health <= 0 then null else @thang.sayMessage # Dead men tell no tales - @addLabel 'say', Label.STYLE_SAY if blurb + blurb = null if blurb in ['For Thoktar!', 'Bones!', 'Behead!', 'Destroy!', 'Die, humans!'] # Let's just hear, not see, these ones. + labelStyle = if /Hero Placeholder/.test(@thang.id) then Label.STYLE_DIALOGUE else Label.STYLE_SAY + @addLabel 'say', labelStyle if blurb if @labels.say?.setText blurb @notifySpeechUpdated blurb: blurb label.update() for name, label of @labels