cheat_turn = FALSE;
/* Assume no winning game */
- creature_ptr->total_winner = FALSE;
+ current_world_ptr->total_winner = FALSE;
creature_ptr->timewalk = FALSE;
flush();
/* Verify Retirement */
- if (creature_ptr->total_winner)
+ if (current_world_ptr->total_winner)
{
/* Verify */
if (!get_check_strict(_("引退しますか? ", "Do you want to retire? "), CHECK_NO_HISTORY)) return;
creature_ptr->last_message = NULL;
/* Hack -- Note *winning* message */
- if (creature_ptr->total_winner && last_words)
+ if (current_world_ptr->total_winner && last_words)
{
char buf[1024] = "";
play_music(TERM_XTRA_MUSIC_BASIC, MUSIC_BASIC_WINNER);
creature_ptr->is_dead = TRUE;
creature_ptr->leaving = TRUE;
- if (!creature_ptr->total_winner)
+ if (!current_world_ptr->total_winner)
{
exe_write_diary(creature_ptr, NIKKI_BUNSHOU, 0, _("ダンジョンの探索に絶望して自殺した。", "give up all hope to commit suicide."));
exe_write_diary(creature_ptr, NIKKI_GAMESTART, 1, _("-------- ゲームオーバー --------", "-------- Game Over --------"));
if (p_ptr->is_dead)
{
/* Handle retirement */
- if (p_ptr->total_winner) kingly(p_ptr);
+ if (current_world_ptr->total_winner) kingly(p_ptr);
/* Save memories */
if (!cheat_save || get_check(_("死んだデータをセーブしますか? ", "Save death? ")))
if (creature_ptr->is_dead)
{
- if (creature_ptr->total_winner)
+ if (current_world_ptr->total_winner)
{
#ifdef JP
sprintf(statmsg, "…あなたは勝利の後%sした。", streq(creature_ptr->died_from, "Seppuku") ? "切腹" : "引退");
{
if (p_ptr->is_dead)
{
- if (!p_ptr->total_winner)
+ if (!current_world_ptr->total_winner)
{
int i;
}
/* King or Queen */
- if (p_ptr->total_winner || (p_ptr->lev > PY_MAX_LEVEL))
+ if (current_world_ptr->total_winner || (p_ptr->lev > PY_MAX_LEVEL))
{
#ifdef JP
/* 英日切り替え */
/* Special stuff */
rd_u16b(&creature_ptr->panic_save);
- rd_u16b(&creature_ptr->total_winner);
+ rd_u16b(¤t_world_ptr->total_winner);
rd_u16b(¤t_world_ptr->noscore);
if ((m_ptr->r_idx == MON_SERPENT) && !cloned)
{
/* Total winner */
- p_ptr->total_winner = TRUE;
+ current_world_ptr->total_winner = TRUE;
/* Redraw the "title" */
p_ptr->redraw |= (PR_TITLE);
{
QUEST_IDX q_idx = quest_number(p_ptr->current_floor_ptr->dun_level);
bool seppuku = streq(hit_from, "Seppuku");
- bool winning_seppuku = creature_ptr->total_winner && seppuku;
+ bool winning_seppuku = current_world_ptr->total_winner && seppuku;
play_music(TERM_XTRA_MUSIC_BASIC, MUSIC_BASIC_GAMEOVER);
}
/* No longer a winner */
- creature_ptr->total_winner = FALSE;
+ current_world_ptr->total_winner = FALSE;
if (winning_seppuku)
{
if ((creature_ptr->pseikaku == SEIKAKU_MUNCHKIN) && point)
{
point = 1;
- if (creature_ptr->total_winner) point = 2;
+ if (current_world_ptr->total_winner) point = 2;
}
if (easy_band) point = (0 - point);
concptr last_message; /* Last message on death or retirement */
char history[4][60]; /* Textual "history" for the Player */
- u16b total_winner; /* Total winner */
u16b panic_save; /* Panic save */
bool wait_report_score; /* Waiting to report score */
#include "targeting.h"
#include "view-mainwindow.h"
#include "spells-floor.h"
+#include "world.h"
/*!
* @brief 剣術の各処理を行う
i = inkey();
prt("", 0, 0);
if (i != '@') return NULL;
- if (caster_ptr->total_winner)
+ if (current_world_ptr->total_winner)
{
take_hit(caster_ptr, DAMAGE_FORCE, 9999, "Seppuku", -1);
- caster_ptr->total_winner = TRUE;
+ current_world_ptr->total_winner = TRUE;
}
else
{
/* Special stuff */
wr_u16b(creature_ptr->panic_save);
- wr_u16b(creature_ptr->total_winner);
+ wr_u16b(current_world_ptr->total_winner);
wr_u16b(current_world_ptr->noscore);
#endif
/* Interupted */
- if (!p_ptr->total_winner && streq(p_ptr->died_from, _("強制終了", "Interrupting")))
+ if (!current_world_ptr->total_winner && streq(p_ptr->died_from, _("強制終了", "Interrupting")))
{
msg_print(_("強制終了のためスコアが記録されません。", "Score not registered due to interruption."));
msg_print(NULL);
}
/* Quitter */
- if (!p_ptr->total_winner && streq(p_ptr->died_from, _("途中終了", "Quitting")))
+ if (!current_world_ptr->total_winner && streq(p_ptr->died_from, _("途中終了", "Quitting")))
{
msg_print(_("途中終了のためスコアが記録されません。", "Score not registered due to quitting."));
msg_print(NULL);
{
p = _("[ウィザード]", "[=-WIZARD-=]");
}
- else if (creature_ptr->total_winner || (creature_ptr->lev > PY_MAX_LEVEL))
+ else if (current_world_ptr->total_winner || (creature_ptr->lev > PY_MAX_LEVEL))
{
if (creature_ptr->arena_number > MAX_ARENA_MONS + 2)
{
}
}
- if (wilderness[y][x].entrance && !wilderness[y][x].town && (p_ptr->total_winner || !(d_info[wilderness[y][x].entrance].flags1 & DF1_WINNER)))
+ if (wilderness[y][x].entrance && !wilderness[y][x].town && (current_world_ptr->total_winner || !(d_info[wilderness[y][x].entrance].flags1 & DF1_WINNER)))
{
int dy, dx;
u32b state_backup[4];
floor_ptr->grid_array[j][i].special = (s16b)wilderness[j][i].town;
}
else if (wilderness[j][i].road) floor_ptr->grid_array[j][i].feat = feat_floor;
- else if (wilderness[j][i].entrance && (creature_ptr->total_winner || !(d_info[wilderness[j][i].entrance].flags1 & DF1_WINNER)))
+ else if (wilderness[j][i].entrance && (current_world_ptr->total_winner || !(d_info[wilderness[j][i].entrance].flags1 & DF1_WINNER)))
{
floor_ptr->grid_array[j][i].feat = feat_entrance;
floor_ptr->grid_array[j][i].special = (byte)wilderness[j][i].entrance;
GAME_TURN arena_start_turn; /*!< 闘技場賭博の開始ターン値 */
u32b start_time;
u16b noscore; /* Cheating flags */
+ u16b total_winner; /* Total winner */
MONSTER_IDX timewalk_m_idx; /*!< 現在時間停止を行っているモンスターのID */