if (!r_ptr->artifact_id[i]) break;
a_idx = r_ptr->artifact_id[i];
chance = r_ptr->artifact_percent[i];
- }
-
- if ((a_idx > 0) && ((randint0(100) < chance) || current_world_ptr->wizard))
- {
- artifact_type *a_ptr = &a_info[a_idx];
- if (!a_ptr->cur_num)
+ if (randint0(100) < chance || current_world_ptr->wizard)
{
- if (create_named_art(player_ptr, a_idx, y, x))
- {
- a_ptr->cur_num = 1;
- if (current_world_ptr->character_dungeon) a_ptr->floor_id = player_ptr->floor_id;
- }
- else if (!preserve_mode)
+ artifact_type *a_ptr = &a_info[a_idx];
+ if (!a_ptr->cur_num)
{
- a_ptr->cur_num = 1;
+ if (create_named_art(player_ptr, a_idx, y, x))
+ {
+ a_ptr->cur_num = 1;
+ if (current_world_ptr->character_dungeon) a_ptr->floor_id = player_ptr->floor_id;
+ }
+ else if (!preserve_mode)
+ {
+ a_ptr->cur_num = 1;
+ }
}
}
}
current_world_ptr->total_winner = TRUE;
player_ptr->redraw |= (PR_TITLE);
play_music(TERM_XTRA_MUSIC_BASIC, MUSIC_BASIC_FINAL_QUEST_CLEAR);
- exe_write_diary(player_ptr, DIARY_DESCRIPTION, 0, _("見事に変愚蛮怒の勝利者となった!", "become *WINNER* of Hengband finely!"));
+ exe_write_diary(player_ptr, DIARY_DESCRIPTION, 0, _("見事に変愚蛮怒の勝利者となった!", "finally become *WINNER* of Hengband!"));
admire_from_patron(player_ptr);
msg_print(_("*** おめでとう ***", "*** CONGRATULATIONS ***"));
msg_print(_("あなたはゲームをコンプリートしました。", "You have won the game!"));