OSDN Git Service

[Refactor] mind_mirror_master_type を enum class 化
[hengbandforosx/hengbandosx.git] / src / system / alloc-entries.h
1 /*
2  * @brief
3  * @author
4  * Copyright (c) 1997 Ben Harrison, James E. Wilson, Robert A. Koeneke
5  * 2002/01/12 mogami
6  * 2021/10/02 Hourier
7  */
8
9 #pragma once
10
11 #include "system/angband.h"
12 #include <vector>
13
14 /*
15  * An entry for the object/monster allocation functions
16  *
17  * Pass 1 is determined from allocation information
18  * Pass 2 is determined from allocation restriction
19  */
20 struct alloc_entry {
21     KIND_OBJECT_IDX index; /* The actual index */
22
23     DEPTH level; /* Base dungeon level */
24     PROB prob1; /* Probability, pass 1 */
25     PROB prob2; /* Probability, pass 2 */
26
27     uint16_t total; /* Unused for now */
28 };
29
30 extern std::vector<alloc_entry> alloc_race_table;
31
32 extern std::vector<alloc_entry> alloc_kind_table;