Add all bubbles
This commit is contained in:
parent
243645658c
commit
0427129db5
1 changed files with 5 additions and 0 deletions
|
@ -105,6 +105,8 @@ app.game =
|
||||||
@speechbubble.say 'nores'
|
@speechbubble.say 'nores'
|
||||||
else
|
else
|
||||||
@speechbubble.say 'toofar'
|
@speechbubble.say 'toofar'
|
||||||
|
else
|
||||||
|
@speechbubble.say 'nosel'
|
||||||
|
|
||||||
# TODO: OMG refactor this ...
|
# TODO: OMG refactor this ...
|
||||||
createSolarpanel: ->
|
createSolarpanel: ->
|
||||||
|
@ -116,6 +118,9 @@ app.game =
|
||||||
@speechbubble.say 'nores'
|
@speechbubble.say 'nores'
|
||||||
else
|
else
|
||||||
@speechbubble.say 'toofar'
|
@speechbubble.say 'toofar'
|
||||||
|
else
|
||||||
|
@speechbubble.say 'nosel'
|
||||||
|
|
||||||
checkResource: (type, amount, drain = false) ->
|
checkResource: (type, amount, drain = false) ->
|
||||||
if @resources[type] >= amount
|
if @resources[type] >= amount
|
||||||
@resources[type] -= amount if drain
|
@resources[type] -= amount if drain
|
||||||
|
|
Loading…
Reference in a new issue