|
|
|
@ -89,8 +89,8 @@ app.game =
|
|
|
|
|
if @checkPosition(@currentSelectedTile)
|
|
|
|
|
if @checkResource('stardust', 20, true)
|
|
|
|
|
@currentSelectedTile.entity = new Silo
|
|
|
|
|
else
|
|
|
|
|
@speechbubble.say 'nores'
|
|
|
|
|
else
|
|
|
|
|
@speechbubble.say 'nores'
|
|
|
|
|
else
|
|
|
|
|
@speechbubble.say 'toofar'
|
|
|
|
|
|
|
|
|
@ -100,8 +100,8 @@ app.game =
|
|
|
|
|
if @checkPosition(@currentSelectedTile)
|
|
|
|
|
if @checkResource('notch', 10, true)
|
|
|
|
|
@currentSelectedTile.entity = new Solarpanel
|
|
|
|
|
else
|
|
|
|
|
@speechbubble.say 'nores'
|
|
|
|
|
else
|
|
|
|
|
@speechbubble.say 'nores'
|
|
|
|
|
else
|
|
|
|
|
@speechbubble.say 'toofar'
|
|
|
|
|
checkResource: (type, amount, drain = false) ->
|
|
|
|
|