6 lines
147 B
CoffeeScript
6 lines
147 B
CoffeeScript
getRandomInt = (min, max) ->
|
|
Math.floor(Math.random() * (max - min + 1)) + min;
|
|
|
|
allResourceTypes = ->
|
|
(k for own k of app.game.resources)
|