OSDN Git Service

[Change] 変愚蛮怒名義を馬鹿馬鹿蛮怒名義に変更. / Change naming from Hengband to Bakabakaband.
[hengband/hengband.git] / src / birth / birth-util.c
index 6e85ace..1cec82d 100644 (file)
@@ -1,9 +1,12 @@
-#include "system/angband.h"
-#include "birth/birth-util.h"
+#include "birth/birth-util.h"
+#include "cmd-io/cmd-gameoption.h"
 #include "core/show-file.h"
+#include "main/sound-of-music.h"
+#include "system/game-option-types.h"
+#include "term/screen-processor.h"
 
 /*!
- * @brief プレイヤー作成を中断して変愚蛮怒を終了する
+ * @brief プレイヤー作成を中断して馬鹿馬鹿蛮怒を終了する
  * @return なし
  */
 void birth_quit(void)
@@ -23,3 +26,37 @@ void show_help(player_type* creature_ptr, concptr helpfile)
     (void)show_file(creature_ptr, TRUE, helpfile, NULL, 0, 0);
     screen_load();
 }
+
+void birth_help_option(player_type *creature_ptr, char c, birth_kind bk)
+{
+    concptr help_file;
+    switch (bk) {
+    case BK_RACE:
+        help_file = _("jraceclas.txt#TheRaces", "raceclas.txt#TheRaces");
+        break;
+    case BK_CLASS:
+        help_file = _("jraceclas.txt#TheClasses", "raceclas.txt#TheClasses");
+        break;
+    case BK_REALM:
+        help_file = _("jmagic.txt#MagicRealms", "magic.txt#MagicRealms");
+        break;
+    case BK_PERSONALITY:
+        help_file = _("jraceclas.txt#ThePersonalities", "raceclas.txt#ThePersonalities");
+        break;
+    case BK_AUTO_ROLLER:
+        help_file = _("jbirth.txt#AutoRoller", "birth.txt#AutoRoller");
+        break;
+    default:
+        help_file = "";
+        break;
+    }
+
+    if (c == '?') {
+        show_help(creature_ptr, help_file);
+    } else if (c == '=') {
+        screen_save();
+        do_cmd_options_aux(creature_ptr, OPT_PAGE_BIRTH, _("初期オプション((*)はスコアに影響)", "Birth option((*)s effect score)"));
+        screen_load();
+    } else if (c != '2' && c != '4' && c != '6' && c != '8')
+        bell();
+}