JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
new tiles get at least 4 hp
authorJason Woofenden <jason@jasonwoof.com>
Mon, 4 Nov 2013 01:41:12 +0000 (20:41 -0500)
committerJason Woofenden <jason@jasonwoof.com>
Mon, 4 Nov 2013 01:41:12 +0000 (20:41 -0500)
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)