Exemple #1
0
def domain_pass(struct):
	d = find_section(struct, name="Domains", section_type='section')
	if d:
		domains = find_all_sections(struct, name=re.compile('^.*Domain$'), section_type='section')
		for domain in domains:
			remove_section(struct, domain)
			domain['subtype'] = 'cleric_domain'
			add_section(d, domain)
	return struct
Exemple #2
0
def domain_pass(struct):
    d = find_section(struct, name="Domains", section_type="section")
    if d:
        domains = find_all_sections(struct, name=re.compile("^.*Domain$"), section_type="section")
        for domain in domains:
            remove_section(struct, domain)
            domain["subtype"] = "cleric_domain"
            add_section(d, domain)
    return struct
Exemple #3
0
def domain_pass(struct):
    d = find_section(struct, name="Domains", section_type='section')
    if d:
        domains = find_all_sections(struct,
                                    name=re.compile('^.*Domain$'),
                                    section_type='section')
        for domain in domains:
            remove_section(struct, domain)
            domain['subtype'] = 'cleric_domain'
            add_section(d, domain)
    return struct
Exemple #4
0
def familiar_pass(rules, basename):
	if basename in ['familiar.html', 'newFamiliars.html']:
		creatures = find_all_sections(rules, section_type='creature')
		for creature in creatures:
			creature['subtype'] = 'familiar'
	return rules
Exemple #5
0
def familiar_pass(rules, basename):
    if basename in ['familiar.html', 'newFamiliars.html']:
        creatures = find_all_sections(rules, section_type='creature')
        for creature in creatures:
            creature['subtype'] = 'familiar'
    return rules