extern const concptr angband_music_basic_name[MUSIC_BASIC_MAX];
extern FLOOR_IDX max_floor_id;
extern u32b saved_floor_file_sign;
-extern s16b alloc_kind_size;
-extern alloc_entry *alloc_kind_table;
-extern s16b alloc_race_size;
-extern alloc_entry *alloc_race_table;
extern TERM_COLOR misc_to_attr[256];
extern SYMBOL_CODE misc_to_char[256];
extern TERM_COLOR tval_to_attr[128];
#include "angband.h"
#include "monsterrace.h"
+#include "util.h"
extern monster_race *r_info;
extern char *r_name;
extern char *r_text;
+
+/*
+ * The size of "alloc_race_table" (at most max_r_idx)
+ */
+s16b alloc_race_size;
+
+/*
+ * The entries in the "race allocator table"
+ */
+alloc_entry *alloc_race_table;
+
#pragma once
+#include "util.h"
/*
* Monster blow structure
*/
monster_race *r_info;
char *r_name;
-char *r_text;
\ No newline at end of file
+char *r_text;
+
+extern s16b alloc_race_size;
+extern alloc_entry *alloc_race_table;
#include "angband.h"
+#include "util.h"
#include "objectkind.h"
/*
object_kind *k_info;
char *k_name;
char *k_text;
+
+/*
+ * The size of "alloc_kind_table" (at most max_k_idx * 4)
+ */
+s16b alloc_kind_size;
+
+/*
+ * The entries in the "kind allocator table"
+ */
+alloc_entry *alloc_kind_table;
+
#pragma once
+#include "util.h"
/*!
* @struct object_kind
extern object_kind *k_info;
extern char *k_name;
-extern char *k_text;
\ No newline at end of file
+extern char *k_text;
+
+extern s16b alloc_kind_size;
+extern alloc_entry *alloc_kind_table;
/*
- * An entry for the object/monster allocation functions
- *
- * Pass 1 is determined from allocation information
- * Pass 2 is determined from allocation restriction
- * Pass 3 is determined from allocation calculation
- */
-
-typedef struct alloc_entry alloc_entry;
-
-struct alloc_entry
-{
- KIND_OBJECT_IDX index; /* The actual index */
-
- DEPTH level; /* Base dungeon level */
- PROB prob1; /* Probability, pass 1 */
- PROB prob2; /* Probability, pass 2 */
- PROB prob3; /* Probability, pass 3 */
-
- u16b total; /* Unused for now */
-};
-
-
-
-/*
* A store, with an owner, various state flags, a current stock
* of items, and a table of items that are often purchased.
*/
int index;
};
+/*
+ * An entry for the object/monster allocation functions
+ *
+ * Pass 1 is determined from allocation information
+ * Pass 2 is determined from allocation restriction
+ * Pass 3 is determined from allocation calculation
+ */
+
+typedef struct alloc_entry alloc_entry;
+
+struct alloc_entry
+{
+ KIND_OBJECT_IDX index; /* The actual index */
+
+ DEPTH level; /* Base dungeon level */
+ PROB prob1; /* Probability, pass 1 */
+ PROB prob2; /* Probability, pass 2 */
+ PROB prob3; /* Probability, pass 3 */
+
+ u16b total; /* Unused for now */
+};
+
/* util.c */
extern errr path_parse(char *buf, int max, concptr file);
extern errr path_build(char *buf, int max, concptr path, concptr file);
u32b saved_floor_file_sign;
/*
- * The size of "alloc_kind_table" (at most max_k_idx * 4)
- */
-s16b alloc_kind_size;
-
-/*
- * The entries in the "kind allocator table"
- */
-alloc_entry *alloc_kind_table;
-
-
-/*
- * The size of "alloc_race_table" (at most max_r_idx)
- */
-s16b alloc_race_size;
-
-/*
- * The entries in the "race allocator table"
- */
-alloc_entry *alloc_race_table;
-
-
-/*
* Specify attr/char pairs for visual special effects
* Be sure to use "index & 0x7F" to avoid illegal access
*/