JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
make connector dots smaller and lighter
[hexbog.git] / main.coffee
index 147b76a..d571e13 100644 (file)
@@ -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
@@ -632,26 +636,26 @@ show_definition = (word, type, definition, language) ->
        $definition_body.html html
 
 connector_width = 11
-connector_radius = 5
+connector_radius = 4
 connector_slant = 12
 add_connector = (tile, horiz, vert) ->
        style = {}
        switch horiz
                when 'left'
-                       style.right = '100%'
+                       style.left = -9
                when 'mid'
                        style.left = 21 - connector_radius
                when 'right'
-                       style.left = '100%'
+                       style.right = -9
        switch vert
                when 'top'
-                       style.bottom = '100%'
+                       style.top = -9
                when 'up'
                        style.top = 21 - connector_radius - connector_slant
                when 'down'
                        style.top = 21 - connector_radius + connector_slant
                when 'bot'
-                       style.top = '100%'
+                       style.bottom = -9
        tile.connector = $("<div class=\"connector\"></div>").css style
        tile.dom.append tile.connector