def run(): data = get_latest_backgrounds() data = parse(data) data = srdfilter(data) dump(data, 'backgrounds.json') dump(srdonly(data), 'srd-backgrounds.json') diff('srd-backgrounds.json')
def run(): data = get_latest_feats() data = prerender(data) data = srdfilter(data) data = fix_dupes(data, SOURCE_HIERARCHY, True) dump(data, 'feats.json') dump(srdonly(data), 'srd-feats.json') diff('srd-feats.json')
def run(): data = get_races_from_web() data = split_subraces(data) data = explicit_sources(data, EXPLICIT_SOURCES) data = fix_dupes(data, SOURCE_HIERARCHY) data = remove_ignored(data, IGNORED_SOURCES) data = srdfilter(data) dump(data, 'races.json') dump(srdonly(data), 'srd-races.json') diff('srd-races.json')
def run(): data = get_spells() processed = parse(data) processed = srdfilter(processed) dump(processed, 'spells.json') srd = ensure_ml_order(srdonly(processed), True) dump(srd, 'srd-spells.json') diff('srd-spells.json') dump(get_auto_only(processed), 'spellauto.json') site_templates = site_parse(processed) dump(site_templates, 'template-spells.json')
def run(): data = get_classes_from_web() data = filter_ignored(data) data = srdfilter(data) data = recursive_tag(data) data = fix_subclass_dupes(data) classfeats = parse_classfeats(data) classfeats.extend(parse_invocations()) dump(data, 'classes.json') dump(classfeats, 'classfeats.json') dump(class_srdonly(data), 'srd-classes.json') diff('srd-classes.json') dump(srdonly(classfeats), 'srd-classfeats.json') diff('srd-classfeats.json')
def run(): data = get_latest_items() data = moneyfilter(data) data = variant_inheritance(data) objects = get_objects() objects = object_actions(objects) data.extend(objects) data = srdfilter(data) data = prerender(data) sitedata = site_render(data) dump(data, 'items.json') dump(sitedata, 'template-items.json') dump(srdonly(data), 'srd-items.json') diff('srd-items.json')
def class_srdonly(data): for klass in data: if 'subclasses' not in klass: continue klass['subclasses'] = srdonly(klass['subclasses']) return srdonly(data)