X-Git-Url: https://jasonwoof.com/gitweb/?p=hexbog.git;a=blobdiff_plain;f=main.coffee;h=7daeab54a6959b286437143e11b199ec96de85a9;hp=147b76a2ff4680e47cd7b2881ea122ae5aac5db2;hb=refs%2Fheads%2Fmaster;hpb=643696e68d5a23c907592334432796738fcc288c diff --git a/main.coffee b/main.coffee index 147b76a..7daeab5 100644 --- a/main.coffee +++ b/main.coffee @@ -306,7 +306,7 @@ update_selection_display = -> else last = '' $little_tip.html "Click the #{last}\"#{word.substr(word.length - 1)}\" for #{score_for word} points" - $big_tip.html "#{word}" + $big_tip.html "#{word}" $big_tip.addClass('good') else $big_tip.html word @@ -548,7 +548,11 @@ blip_selection = -> force = effects.force.last() if force > 0 for tile in area.up - tile.new_hp = tile.hp + force + if tile.new_hp + # for overlap of board and [n]neigbors + tile.new_hp += force + else + tile.new_hp = tile.hp + force for s in spaces s.tile.new_hp ?= s.tile.hp - 1 if s.tile.new_hp < 0 @@ -622,36 +626,36 @@ activate_selection = -> show_definition = (word, type, definition, language) -> - html = "" + html = "" html += "#{word.substr(0, 1).toUpperCase() + word.substr(1)}, #{type}" if language isnt 'English' html += " (#{language})" html += ': ' html += definition - html += '