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

#include "h-basic.h"
#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 */
};