add components to armor/decorations, refactor

- model: add base ItemCraftable
- db: use instance option to control fetching of components,
  instead of per-method arg
This commit is contained in:
Bryce Allen
2015-08-12 01:48:19 -05:00
parent 5af2a2e04e
commit a2008a0461
3 changed files with 128 additions and 95 deletions

View File

@@ -170,7 +170,7 @@ def skilltree_json(db, path):
def weapon_json(db, path):
weapons = db.get_weapons(get_components=True)
weapons = db.get_weapons()
mkdirs_p(path)
write_list_file(path, weapons)
@@ -235,7 +235,7 @@ def horn_melody_json(db, path):
def main():
db = MHDB(_pathfix.db_path)
db = MHDB(include_item_components=True)
args = parse_args()