write_level = TRUE;
/* Hack -- seed for flavors */
- seed_flavor = randint0(0x10000000);
+ current_world_ptr->seed_flavor = randint0(0x10000000);
/* Hack -- seed for town layout */
- seed_town = randint0(0x10000000);
+ current_world_ptr->seed_town = randint0(0x10000000);
/* Roll up a new character */
player_birth();
else if (prefix(b + 1, "RANDOM"))
{
/* "RANDOM" uses a special parameter to determine the number of the quest */
- sprintf(tmp, "%d", (int)(seed_town%atoi(b + 7)));
+ sprintf(tmp, "%d", (int)(current_world_ptr->seed_town%atoi(b + 7)));
v = tmp;
}
extern bool character_icky;
extern bool character_xtra;
extern bool creating_savefile;
-extern u32b seed_flavor;
-extern u32b seed_town;
extern COMMAND_CODE command_cmd;
extern COMMAND_ARG command_arg;
extern s16b command_rep;
/* Hack -- the two "special seeds" */
- rd_u32b(&seed_flavor);
- rd_u32b(&seed_town);
+ rd_u32b(¤t_world_ptr->seed_flavor);
+ rd_u32b(¤t_world_ptr->seed_town);
/* Special stuff */
#include "trap.h"
#include "snipe.h"
#include "files.h"
+#include "world.h"
/*!
* @brief 最初から簡易な名称が明らかになるベースアイテムの判定。 / Certain items, if aware, are known instantly
Rand_state_backup(state_backup);
/* Hack -- Induce consistant flavors */
- Rand_state_set(seed_flavor);
+ Rand_state_set(current_world_ptr->seed_flavor);
/* Initialize flavor index of each object by itself */
/* Write the "object seeds" */
- wr_u32b(seed_flavor);
- wr_u32b(seed_town);
+ wr_u32b(current_world_ptr->seed_flavor);
+ wr_u32b(current_world_ptr->seed_town);
/* Special stuff */
bool creating_savefile; /* New savefile is currently created */
-u32b seed_flavor; /* Hack -- consistent object colors */
-u32b seed_town; /* Hack -- consistent town layout */
-
s16b command_cmd; /* Current "Angband Command" */
COMMAND_ARG command_arg; /*!< 各種コマンドの汎用的な引数として扱う / Gives argument of current command */
MONRACE_IDX bounty_r_idx[MAX_KUBI];
u32b play_time; /*!< 実プレイ時間 */
+
+ u32b seed_flavor; /* Hack -- consistent object colors */
+ u32b seed_town; /* Hack -- consistent town layout */
+
} world_type;
extern bool is_daytime(void);