Change crafting table name to show step count

This commit is contained in:
Andrew Miner
2015-01-10 10:52:23 -08:00
parent f21e1592c0
commit cbe836086a
2 changed files with 11 additions and 0 deletions
+5
View File
@@ -29,6 +29,7 @@ module.exports = class CraftingTable extends BaseModel
multiplier: { get:@getMultiplier }
output: { get:@getOutput }
step: { get:@getStep, set:@setStep }
stepCount: { get:@getStepCount }
toolNames: { get:@getToolNames }
}
@@ -73,6 +74,10 @@ module.exports = class CraftingTable extends BaseModel
return this
getStepCount: ->
return 0 unless @_steps?
return @_steps.length
getToolNames: ->
recipe = @_steps[@_step]?.recipe
return '' unless recipe?