JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
new tiles get at least 4 hp
[hexbog.git] / main.coffee
index ce67983..d33d36a 100644 (file)
@@ -442,7 +442,7 @@ select_tile = (num) ->
 new_tile = (num, x, y) ->
        letter = new_letter()
 
-       hp = 1 + Math.floor(Math.random() * (HP_MAX - 1))
+       hp = 4 + Math.floor(Math.random() * (HP_MAX - 4))
 
        html_tile = $("<div class=\"tile hp#{hp}\" style=\"left: #{x}px; top: #{y}px\" unselectable=\"on\">#{letter}</div>")
        $board.append(html_tile)