3 #include "realm/realm-names-table.h"
4 #include "player/player-race.h"
5 #include "player/race-info-table.h"
6 #include "player/player-class.h"
7 #include "player/player-races-table.h"
8 #include "player/player-classes-table.h"
10 #define MAX_BLDG 32 /*!< 施設の種類最大数 / Number of buildings */
12 #define BUILDING_NON_MEMBER 0 /*!< 不明(現在未使用) */
13 #define BUILDING_MEMBER 1 /*!< 不明(現在未使用) */
14 #define BUILDING_OWNER 2 /*!< 施設の種族/職業条件が一致している状態値 */
19 #define ARENA_DEFEATED_OLD_VER (-(MAX_SHORT)) /*<! 旧バージョンの闘技場敗北定義 */
22 * A structure to describe a building.
25 typedef struct building_type building_type;
29 GAME_TEXT name[20]; /* proprietor name */
30 GAME_TEXT owner_name[20]; /* proprietor name */
31 GAME_TEXT owner_race[20]; /* proprietor race */
33 GAME_TEXT act_names[8][30]; /* action names */
34 PRICE member_costs[8]; /* Costs for class members of building */
35 PRICE other_costs[8]; /* Costs for nonguild members */
36 char letters[8]; /* action letters */
37 BACT_IDX actions[8]; /* action codes */
38 BACT_RESTRICT_IDX action_restr[8]; /* action restrictions */
40 player_class_type member_class[MAX_CLASS]; /* which classes are part of guild */
41 player_race_type member_race[MAX_RACES]; /* which classes are part of guild */
42 REALM_IDX member_realm[MAX_MAGIC + 1]; /* which realms are part of guild */
45 extern building_type building[MAX_BLDG];
46 extern bool reinit_wilderness;
47 extern MONRACE_IDX today_mon;
49 extern MONRACE_IDX battle_mon[4];
50 extern u32b mon_odds[4];
51 extern int battle_odds;
53 extern int sel_monster;
57 * @brief 闘技場のモンスターエントリー構造体 / A structure type for arena entry
61 MONRACE_IDX r_idx; /*!< 闘技場のモンスター種族ID(0ならば表彰式) / Monster (0 means victory prizing) */
62 tval_type tval; /*!< モンスター打倒後に得られるアイテムの大カテゴリID / tval of prize (0 means no prize) */
63 OBJECT_SUBTYPE_VALUE sval; /*!< モンスター打倒後に得られるアイテムの小カテゴリID / sval of prize */
66 extern void do_cmd_building(player_type *player_ptr);