mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
Don't show blurbs for aggro messages. Big announces action blurbs for heroes.
This commit is contained in:
parent
5a71d93d8a
commit
fe018309d0
1 changed files with 3 additions and 1 deletions
|
@ -664,7 +664,9 @@ module.exports = Lank = class Lank extends CocoClass
|
||||||
updateLabels: ->
|
updateLabels: ->
|
||||||
return unless @thang
|
return unless @thang
|
||||||
blurb = if @thang.health <= 0 then null else @thang.sayMessage # Dead men tell no tales
|
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
|
if @labels.say?.setText blurb
|
||||||
@notifySpeechUpdated blurb: blurb
|
@notifySpeechUpdated blurb: blurb
|
||||||
label.update() for name, label of @labels
|
label.update() for name, label of @labels
|
||||||
|
|
Loading…
Reference in a new issue