"A Kutar is an expressionless animal-like living creature. The word 'kuta' means 'absentmindedly' or 'vacantly'. Their absentmindedness hurts their searching and perception skills, but renders them incapable of being confused. Their unearthly calmness and serenity make them among the most stealthy of any race. Kutars, although expressionless, are beautiful and so have a high charisma. Members of this race can learn to expand their body horizontally. This increases armour class, but renders them vulnerable to magical attacks.",
-"An android is a artificial creation with a body of machinery. They are poor at spell casting, but they make excellent warriors. They don't acquire experience like other races, but rather gain in power as they attach new equipment to their frame. Rings, amulets, and lights do not influence growth. Androids are resistant to poison, can move freely, and are immune to exp-draining attacks. Moreover, because of their hard metallic bodies, they get a bonus to AC. Androids have electronic circuits throughout their body and must beware of electric shocks. They gain very little nutrition from the food of mortals, but they can use flasks of oil as their energy source."
+"An android is a artificial creation with a body of machinery. They are poor at spell casting, but they make excellent warriors. They don't acquire experience like other races, but rather gain in power as they attach new equipment to their frame. Rings, amulets, and lights do not influence growth. Androids are resistant to poison, can move freely, and are immune to exp-draining attacks. Moreover, because of their hard metallic bodies, they get a bonus to AC. Androids have electronic circuits throughout their body and must beware of electric shocks. They gain very little nutrition from the food of mortals, but they can use flasks of oil as their energy source.",
"Merfolk implementing.",
"\"munchkin\" is a personality for beginners. It raises all your stats and skills. With this personality, you can win the game easily, but gain little honor in doing so.",
-"\ChargeMan\" is crazy killer. It render you powerfull strength and constitution, but poor intelligence.you are not confused and seen the illusion because this you go mad from the beginning.",
+"\"ChargeMan\" is crazy killer. It render you powerfull strength and constitution, but poor intelligence.you are not confused and seen the illusion because this you go mad from the beginning.",
#endif
};
/*!
* @brief put_stats()のサブルーチンとして、オートロール中のステータスを表示する / Display stat values, subset of "put_stats()"
- * @details See 'display_player()' for screen layout constraints.
+ * @details See 'display_player(p_ptr, )' for screen layout constraints.
* @return なし
*/
-static void birth_put_stats(void)
+static void birth_put_stats(player_type *creature_ptr)
{
int i, j, m, p;
int col;
j = rp_ptr->r_adj[i] + cp_ptr->c_adj[i] + ap_ptr->a_adj[i];
/* Obtain the current stat */
- m = adjust_stat(p_ptr->stat_max[i], j);
+ m = adjust_stat(creature_ptr->stat_max[i], j);
/* Put the stat */
cnv_stat(m, buf);
/* Hack -- zero the struct */
(void)WIPE(creature_ptr, player_type);
+ //TODO: キャラ作成からゲーム開始までに current_floor_ptr を参照しなければならない処理は今後整理して外す。
+ creature_ptr->current_floor_ptr = &floor_info;
+
C_MAKE(creature_ptr->inventory_list, INVEN_TOTAL, object_type);
/* Wipe the history */
/* Assume no cheating */
creature_ptr->noscore = 0;
- creature_ptr->wizard = FALSE;
+ current_world_ptr->wizard = FALSE;
/* Not waiting to report score */
creature_ptr->wait_report_score = FALSE;
creature_ptr->pet_extra_flags = (PF_TELEPORT | PF_ATTACK_SPELL | PF_SUMMON_SPELL);
/* Wipe the recall depths */
- for (i = 0; i < max_d_idx; i++)
+ for (i = 0; i < current_world_ptr->max_d_idx; i++)
{
max_dlv[i] = 0;
}
/* Initialize arena and rewards information -KMW- */
creature_ptr->arena_number = 0;
creature_ptr->inside_arena = FALSE;
- creature_ptr->inside_quest = 0;
+ creature_ptr->current_floor_ptr->inside_quest = 0;
for (i = 0; i < MAX_MANE; i++)
{
creature_ptr->mane_spell[i] = -1;
/* Init the random quests */
init_flags = INIT_ASSIGN;
- creature_ptr->inside_quest = MIN_RANDOM_QUEST;
+ creature_ptr->current_floor_ptr->inside_quest = MIN_RANDOM_QUEST;
process_dungeon_file("q_info.txt", 0, 0, 0, 0);
- creature_ptr->inside_quest = 0;
+ creature_ptr->current_floor_ptr->inside_quest = 0;
/* Generate quests */
for (i = MIN_RANDOM_QUEST + number_of_quests - 1; i >= MIN_RANDOM_QUEST; i--)
/* Init the two main quests (Oberon + Serpent) */
init_flags = INIT_ASSIGN;
- creature_ptr->inside_quest = QUEST_OBERON;
+ creature_ptr->current_floor_ptr->inside_quest = QUEST_OBERON;
process_dungeon_file("q_info.txt", 0, 0, 0, 0);
quest[QUEST_OBERON].status = QUEST_STATUS_TAKEN;
- creature_ptr->inside_quest = QUEST_SERPENT;
+ creature_ptr->current_floor_ptr->inside_quest = QUEST_SERPENT;
process_dungeon_file("q_info.txt", 0, 0, 0, 0);
quest[QUEST_SERPENT].status = QUEST_STATUS_TAKEN;
- creature_ptr->inside_quest = 0;
+ creature_ptr->current_floor_ptr->inside_quest = 0;
}
/*!
- * @brief ゲームターンを初期化する / Reset current_world_ptr->game_turn
+ * @brief ゲームターンを初期化する / Reset turn
* @details アンデッド系種族は開始時刻を夜からにする。
* @return なし
*/
for (; j < 59; j++) creature_ptr->history[i][j] = ' ';
creature_ptr->history[i][59] = '\0';
}
- display_player(1);
+ display_player(p_ptr, 1);
#ifdef JP
c_put_str(TERM_L_GREEN, "(キャラクターの生い立ち - 編集モード)", 11, 20);
put_str("[ カーソルキーで移動、Enterで終了、Ctrl-Aでファイル読み込み ]", 17, 10);
#endif /* ALLOW_AUTOROLLER */
clear_from(10);
- /* Reset current_world_ptr->game_turn; before auto-roll and after choosing race */
+ /* Reset turn; before auto-roll and after choosing race */
init_turn(creature_ptr);
/*** Generate ***/
if (flag)
{
/* Dump data */
- birth_put_stats();
+ birth_put_stats(creature_ptr);
/* Dump round */
put_str(format("%10ld", auto_round), 10, col+20);
creature_ptr->chp = creature_ptr->mhp;
creature_ptr->csp = creature_ptr->msp;
- display_player(mode);
+ display_player(p_ptr, mode);
/* Prepare a prompt (must squeeze everything in) */
Term_gotoxy(2, 23);
continue;
}
- /* Toggle the display */
if ((c == 'H') || (c == 'h'))
{
mode = ((mode != 0) ? 0 : 1);
/*
* Wipe monsters in old dungeon
- * This wipe destroys value of current_floor_ptr->m_list[].cur_num .
+ * This wipe destroys value of p_ptr->current_floor_ptr->m_list[].cur_num .
*/
wipe_m_list();
message_add(" ");
message_add(" ");
- do_cmd_write_nikki(NIKKI_GAMESTART, 1, _("-------- 新規ゲーム開始 --------", "-------- Start New Game --------"));
- do_cmd_write_nikki(NIKKI_HIGAWARI, 0, NULL);
+ exe_write_diary(p_ptr, NIKKI_GAMESTART, 1, _("-------- 新規ゲーム開始 --------", "-------- Start New Game --------"));
+ exe_write_diary(p_ptr, NIKKI_HIGAWARI, 0, NULL);
sprintf(buf,_(" 性別に%sを選択した。", " choose %s personality."), sex_info[creature_ptr->psex].title);
- do_cmd_write_nikki(NIKKI_BUNSHOU, 1, buf);
+ exe_write_diary(p_ptr, NIKKI_BUNSHOU, 1, buf);
sprintf(buf,_(" 種族に%sを選択した。", " choose %s race."), race_info[creature_ptr->prace].title);
- do_cmd_write_nikki(NIKKI_BUNSHOU, 1, buf);
+ exe_write_diary(p_ptr, NIKKI_BUNSHOU, 1, buf);
sprintf(buf,_(" 職業に%sを選択した。", " choose %s class."), class_info[creature_ptr->pclass].title);
- do_cmd_write_nikki(NIKKI_BUNSHOU, 1, buf);
+ exe_write_diary(p_ptr, NIKKI_BUNSHOU, 1, buf);
if (creature_ptr->realm1)
{
sprintf(buf,_(" 魔法の領域に%s%sを選択した。", " choose %s%s realm."),realm_names[creature_ptr->realm1], creature_ptr->realm2 ? format("と%s",realm_names[creature_ptr->realm2]) : "");
- do_cmd_write_nikki(NIKKI_BUNSHOU, 1, buf);
+ exe_write_diary(p_ptr, NIKKI_BUNSHOU, 1, buf);
}
sprintf(buf,_(" 性格に%sを選択した。", " choose %s."), seikaku_info[creature_ptr->pseikaku].title);
- do_cmd_write_nikki(NIKKI_BUNSHOU, 1, buf);
+ exe_write_diary(p_ptr, NIKKI_BUNSHOU, 1, buf);
/* Init the shops */
for (i = 1; i < max_towns; i++)