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