summaryrefslogtreecommitdiff
path: root/src/school_type.hpp
blob: 7a5702b46dfaa17de2573dc39bda39b7813869ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once

#include "h-basic.h"
#include "deity_type_fwd.hpp"

struct school_type
{
	cptr name;                      /* Name */
	s16b skill;                     /* Skill used for that school */
	bool_ spell_power;              /* Does spell power affect spells in this school? */
	bool_ sorcery;                  /* Does Sorcery affect this school? */

	int deity_idx;     /* Deity; if <=0, no deity required */
	deity_type *deity; /* Direct pointer to deity */

	int (*bonus_levels)(); /* Calculate number of bonus levels */

	bool_ (*depends_satisfied)(); /* Are dependendies satisfied? */

	struct school_provider_list *providers; /* List of secondary providers of this school */
};