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

#include "h-basic.h"

/**
 * An entry for the object/monster allocation functions
 *
 * Pass 1 is determined from allocation information
 * Pass 2 is determined from allocation restriction
 * Pass 3 is determined from allocation calculation
 */
struct alloc_entry
{
	s16b index = -1;        /* The actual index */

	byte level = 0;         /* Base dungeon level */
	byte prob1 = 0;         /* Probability, pass 1 */
	byte prob2 = 0;         /* Probability, pass 2 */
	byte prob3 = 0;         /* Probability, pass 3 */
};