Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
hexbog.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
6efb82e
)
new tiles get at least 4 hp
author
Jason Woofenden
<jason@jasonwoof.com>
Mon, 4 Nov 2013 01:41:12 +0000
(20:41 -0500)
committer
Jason Woofenden
<jason@jasonwoof.com>
Mon, 4 Nov 2013 01:41:12 +0000
(20:41 -0500)
main.coffee
patch
|
blob
|
history
diff --git
a/main.coffee
b/main.coffee
index
ce67983
..
d33d36a
100644
(file)
--- a/
main.coffee
+++ b/
main.coffee
@@
-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)