Rename RecipeCatalog to ModPack

This commit is contained in:
Andrew Miner
2015-01-01 20:16:38 -08:00
parent f28a763b13
commit e14a4d0810
9 changed files with 17 additions and 17 deletions
+2 -2
View File
@@ -7,13 +7,13 @@
BaseModel = require './base_model'
CraftingTable = require './crafting_table'
RecipeCatalog = require './recipe_catalog'
ModPack = require './mod_pack'
########################################################################################################################
module.exports = class ItemPage extends BaseModel
constructor: (attributes={}, options={})->
attributes.catalog ?= new RecipeCatalog
attributes.catalog ?= new ModPack
attributes.table ?= new CraftingTable catalog:attributes.catalog
super attributes, options
@@ -1,5 +1,5 @@
###
# Crafting Guide - recipe_catalog.coffee
# Crafting Guide - mod_pack.coffee
#
# Copyright (c) 2014 by Redwood Labs
# All rights reserved.
@@ -12,7 +12,7 @@ ModVersionParser = require './mod_version_parser'
########################################################################################################################
module.exports = class RecipeCatalog extends BaseModel
module.exports = class ModPack extends BaseModel
constructor: (attributes={}, options={})->
attributes.books ?= []
@@ -119,7 +119,7 @@ module.exports = class RecipeCatalog extends BaseModel
# Object Overrides #############################################################################
toString: ->
return "RecipeCatalog (#{@cid}) {books:#{@books.length} items}"
return "ModPack (#{@cid}) {books:#{@books.length} items}"
_sortBooks:->
@books.sort (a, b)->