OSDN Git Service

Merge pull request #1058 from sikabane-works/feature/enum-virtue
[hengbandforosx/hengbandosx.git] / src / player-info / avatar.h
1 #pragma once
2
3 #include "system/angband.h"
4
5 #define MAX_VIRTUE 18 /*!< 徳定義の最大数 */
6
7 enum virtue_idx {
8     V_NONE = 0,
9     V_COMPASSION = 1,
10         V_HONOUR = 2,
11         V_JUSTICE = 3,
12         V_SACRIFICE = 4,
13         V_KNOWLEDGE = 5,
14         V_FAITH = 6,
15         V_ENLIGHTEN = 7,
16         V_ENCHANT = 8,
17         V_CHANCE = 9,
18         V_NATURE = 10,
19         V_HARMONY = 11,
20         V_VITALITY = 12,
21         V_UNLIFE = 13,
22         V_PATIENCE = 14,
23         V_TEMPERANCE = 15,
24         V_DILIGENCE = 16,
25         V_VALOUR = 17,
26         V_INDIVIDUALISM = 18,
27 };
28
29 #define VIRTUE_LARGE 1
30 #define VIRTUE_SMALL 2
31
32 typedef struct player_type player_type;
33 bool compare_virtue(player_type *creature_ptr, int type, int num, int tekitou);
34 int virtue_number(player_type *creature_ptr, int type);
35 extern concptr virtue[MAX_VIRTUE];
36 void get_virtues(player_type *creature_ptr);
37 void chg_virtue(player_type *creature_ptr, int virtue, int amount);
38 void set_virtue(player_type *creature_ptr, int virtue, int amount);
39 void dump_virtues(player_type *creature_ptr, FILE *OutFile);