/*!
- * @file cmd-dump.c
* @brief プレイヤーのインターフェイスに関するコマンドの実装 / Interface commands
* @date 2014/01/02
* @author
- * <pre>
* Copyright (c) 1997 Ben Harrison, James E. Wilson, Robert A. Koeneke
* This software may be copied and distributed for educational, research,
* and not for profit purposes provided that this copyright and statement
* are included in all such copies. Other copyrights may also apply.
- * </pre>
- * @details
- * <pre>
- * A set of functions to maintain automatic dumps of various kinds.
- * The dump commands of original Angband simply add new lines to
- * existing files; these files will become bigger and bigger unless
- * an user deletes some or all of these files by hand at some
- * point.
- * These three functions automatically delete old dumped lines
- * before adding new ones. Since there are various kinds of automatic
- * dumps in a single file, we add a header and a footer with a type
- * name for every automatic dump, and kill old lines only when the
- * lines have the correct type of header and footer.
- * We need to be quite paranoid about correctness; the user might
- * (mistakenly) edit the file by hand, and see all their work come
- * to nothing on the next auto dump otherwise. The current code only
- * detects changes by noting inconsistencies between the actual number
- * of lines and the number written in the footer. Note that this will
- * not catch single-line edits.
- * </pre>
+ * 2020 Hourier Rearranged
*/
#include "cmd-io/cmd-dump.h"
-#include "art-definition/art-bow-types.h"
#include "cmd-io/feeling-table.h"
+#include "core/asking-player.h"
#include "dungeon/quest.h"
#include "floor/floor-town.h"
-#include "floor/floor.h"
#include "io-dump/dump-remover.h"
#include "io-dump/dump-util.h"
#include "io/chuukei.h"
+#include "io/files-util.h"
#include "io/input-key-acceptor.h"
#include "io/interpret-pref-file.h"
#include "io/read-pref-file.h"
-#include "main/sound-of-music.h"
#include "locale/english.h"
+#include "main/sound-of-music.h"
+#include "mutation/mutation-flag-types.h"
#include "player/player-personalities-types.h"
#include "system/angband-version.h"
+#include "system/floor-type-definition.h"
#include "term/gameterm.h"
+#include "term/screen-processor.h"
#include "term/term-color-types.h"
#include "util/angband-files.h"
+#include "util/int-char-converter.h"
+#include "view/display-messages.h"
#include "view/display-player.h" // 暫定。後で消す.
#include "world/world.h"
+#include "player/player-status-flags.h"
/*!
* @brief 画面を再描画するコマンドのメインルーチン
screen_save();
while (TRUE)
{
- Term_clear();
+ term_clear();
prt(_("[ カラーの設定 ]", "Interact with Colors"), 2, 0);
prt(_("(1) ユーザー設定ファイルのロード", "(1) Load a user pref file"), 4, 5);
prt(_("(2) カラーの設定をファイルに書き出す", "(2) Dump colors"), 5, 5);
if (!askfor(tmp, 70)) continue;
(void)process_pref_file(creature_ptr, tmp, process_autopick_file_command);
- Term_xtra(TERM_XTRA_REACT, 0);
- Term_redraw();
+ term_xtra(TERM_XTRA_REACT, 0);
+ term_redraw();
}
else if (i == '2')
{
clear_from(10);
for (byte j = 0; j < 16; j++)
{
- Term_putstr(j * 4, 20, -1, a, "###");
- Term_putstr(j * 4, 22, -1, j, format("%3d", j));
+ term_putstr(j * 4, 20, -1, a, "###");
+ term_putstr(j * 4, 22, -1, j, format("%3d", j));
}
name = ((a < 16) ? color_names[a] : _("未定義", "undefined"));
- Term_putstr(5, 10, -1, TERM_WHITE,
+ term_putstr(5, 10, -1, TERM_WHITE,
format(_("カラー = %d, 名前 = %s", "Color = %d, Name = %s"), a, name));
- Term_putstr(5, 12, -1, TERM_WHITE,
+ term_putstr(5, 12, -1, TERM_WHITE,
format("K = 0x%02x / R,G,B = 0x%02x,0x%02x,0x%02x",
angband_color_table[a][0],
angband_color_table[a][1],
angband_color_table[a][2],
angband_color_table[a][3]));
- Term_putstr(0, 14, -1, TERM_WHITE,
+ term_putstr(0, 14, -1, TERM_WHITE,
_("コマンド (n/N/k/K/r/R/g/G/b/B): ", "Command (n/N/k/K/r/R/g/G/b/B): "));
i = inkey();
if (i == ESCAPE) break;
if (i == 'b') angband_color_table[a][3] = (byte)(angband_color_table[a][3] + 1);
if (i == 'B') angband_color_table[a][3] = (byte)(angband_color_table[a][3] - 1);
- Term_xtra(TERM_XTRA_REACT, 0);
- Term_redraw();
+ term_xtra(TERM_XTRA_REACT, 0);
+ term_redraw();
}
}
else
void do_cmd_version(void)
{
#if FAKE_VER_EXTRA > 0
- msg_format(_("変愚蛮怒(Hengband) %d.%d.%d.%d", "You are playing Hengband %d.%d.%d.%d."),
+ msg_format(_("馬鹿馬鹿蛮怒(Bakabakaband) %d.%d.%d.%d", "You are playing Bakabakaband %d.%d.%d.%d."),
FAKE_VER_MAJOR - 10, FAKE_VER_MINOR, FAKE_VER_PATCH, FAKE_VER_EXTRA);
#else
- msg_format(_("変愚蛮怒(Hengband) %d.%d.%d", "You are playing Hengband %d.%d.%d."),
+ msg_format(_("馬鹿馬鹿蛮怒(Bakabakaband) %d.%d.%d", "You are playing Bakabakaband %d.%d.%d."),
FAKE_VER_MAJOR - 10, FAKE_VER_MINOR, FAKE_VER_PATCH);
#endif
}
return;
}
- if (creature_ptr->muta3 & MUT3_GOOD_LUCK)
+ if (have_good_luck(creature_ptr))
msg_print(do_cmd_feeling_text_lucky[creature_ptr->feeling]);
- else if (IS_ECHIZEN(creature_ptr))
+ else if (is_echizen(creature_ptr))
msg_print(do_cmd_feeling_text_combat[creature_ptr->feeling]);
else
msg_print(do_cmd_feeling_text[creature_ptr->feeling]);