summaryrefslogtreecommitdiff
path: root/src/set_component.hpp
blob: fed444512055aebf674ec1e829002ab11a55c628 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once

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

#include <array>
#include <cstdint>

constexpr std::size_t SET_MAX_SIZE = 6;

struct set_component {
	bool present = false;                             /* Is it being worn? */
	s16b a_idx = 0;                                    /* What artifact? */
	std::array<s16b           , SET_MAX_SIZE> pval;    /* Pval for each combination */
	std::array<object_flag_set, SET_MAX_SIZE> flags;   /* Flags */
};