|
|
|
@ -105,6 +105,8 @@ app.game =
|
|
|
|
|
@speechbubble.say 'nores'
|
|
|
|
|
else
|
|
|
|
|
@speechbubble.say 'toofar'
|
|
|
|
|
else
|
|
|
|
|
@speechbubble.say 'nosel'
|
|
|
|
|
|
|
|
|
|
# TODO: OMG refactor this ...
|
|
|
|
|
createSolarpanel: ->
|
|
|
|
@ -116,6 +118,9 @@ app.game =
|
|
|
|
|
@speechbubble.say 'nores'
|
|
|
|
|
else
|
|
|
|
|
@speechbubble.say 'toofar'
|
|
|
|
|
else
|
|
|
|
|
@speechbubble.say 'nosel'
|
|
|
|
|
|
|
|
|
|
checkResource: (type, amount, drain = false) ->
|
|
|
|
|
if @resources[type] >= amount
|
|
|
|
|
@resources[type] -= amount if drain
|
|
|
|
|