Fix item cost

This commit is contained in:
Ruben Müller 2014-12-07 19:41:22 +01:00
parent 723d130791
commit 95735090d5

View file

@ -158,7 +158,7 @@ app.game =
createMiner: ->
if @currentSelectedTile and !@currentSelectedTile.entity
if @checkResource('stardust', 30, true)
if @checkResource('lubinit', 10, true)
@currentSelectedTile.entity = new Miner
else
@speechbubble.say 'nores'
@ -168,7 +168,7 @@ app.game =
createSilo: ->
if @currentSelectedTile
if @checkPosition(@currentSelectedTile)
if @checkResource('stardust', 20, true)
if @checkResource('dirt', 10, true)
@currentSelectedTile.entity = new Silo
else
@speechbubble.say 'nores'