/* Give some choices */
#ifdef JP
- prt("(1) ¥¡¼ÆþÎÏ ¥ª¥×¥·¥ç¥ó", 4, 5);
- prt("(2) ²èÌ̽ÐÎÏ ¥ª¥×¥·¥ç¥ó", 5, 5);
- prt("(3) ¥²¡¼¥à¥×¥ì¥¤ ¥ª¥×¥·¥ç¥ó", 6, 5);
- prt("(4) ¹ÔÆ°Ãæ»ß´Ø·¸ ¥ª¥×¥·¥ç¥ó", 7, 5);
- prt("(5) ¸úΨ²½ ¥ª¥×¥·¥ç¥ó", 8, 5);
- prt("(6) ´Ê°×¥¢¥¤¥Æ¥à¼«Æ°Ç˲õ ¥ª¥×¥·¥ç¥ó", 9, 5);
- prt("(R) ¥×¥ì¥¤µÏ¿ ¥ª¥×¥·¥ç¥ó", 10, 5);
+ prt("(1) ¥¡¼ÆþÎÏ ¥ª¥×¥·¥ç¥ó", 3, 5);
+ prt("(2) ²èÌ̽ÐÎÏ ¥ª¥×¥·¥ç¥ó", 4, 5);
+ prt("(3) ¥²¡¼¥à¥×¥ì¥¤ ¥ª¥×¥·¥ç¥ó", 5, 5);
+ prt("(4) ¹ÔÆ°Ãæ»ß´Ø·¸ ¥ª¥×¥·¥ç¥ó", 6, 5);
+ prt("(5) ¸úΨ²½ ¥ª¥×¥·¥ç¥ó", 7, 5);
+ prt("(6) ´Ê°×¥¢¥¤¥Æ¥à¼«Æ°Ç˲õ ¥ª¥×¥·¥ç¥ó", 8, 5);
+ prt("(R) ¥×¥ì¥¤µÏ¿ ¥ª¥×¥·¥ç¥ó", 9, 5);
/* Special choices */
- prt("(D) ´ðËÜ¥¦¥§¥¤¥ÈÎÌ", 12, 5);
- prt("(H) Äã¥Ò¥Ã¥È¥Ý¥¤¥ó¥È·Ù¹ð", 13, 5);
+ prt("(D) ´ðËÜ¥¦¥§¥¤¥ÈÎÌ", 11, 5);
+ prt("(H) Äã¥Ò¥Ã¥È¥Ý¥¤¥ó¥È·Ù¹ð", 12, 5);
+ prt("(M) ÄãËâÎÏ¿§ïçÃÍ", 13, 5);
prt("(A) ¼«Æ°¥»¡¼¥Ö ¥ª¥×¥·¥ç¥ó", 14, 5);
/* Window flags */
prt("(W) ¥¦¥¤¥ó¥É¥¦¥Õ¥é¥°", 15, 5);
#else
- prt("(1) Input Options", 4, 5);
- prt("(2) Output Options", 5, 5);
- prt("(3) Game-Play Options", 6, 5);
- prt("(4) Disturbance Options", 7, 5);
- prt("(5) Efficiency Options", 8, 5);
- prt("(6) Easy Auto-Destroyer Options", 9, 5);
- prt("(R) Play-record Options", 10, 5);
-
+ prt("(1) Input Options", 3, 5);
+ prt("(2) Output Options", 4, 5);
+ prt("(3) Game-Play Options", 5, 5);
+ prt("(4) Disturbance Options", 6, 5);
+ prt("(5) Efficiency Options", 7, 5);
+ prt("(6) Easy Auto-Destroyer Options", 8, 5);
+ prt("(R) Play-record Options", 9, 5);
/* Special choices */
- prt("(D) Base Delay Factor", 12, 5);
- prt("(H) Hitpoint Warning", 13, 5);
+ prt("(D) Base Delay Factor", 11, 5);
+ prt("(H) Hitpoint Warning", 12, 5);
+ prt("(M) Mana Color Threshold", 13, 5);
prt("(A) Autosave Options", 14, 5);
-
-
/* Window flags */
prt("(W) Window Flags", 15, 5);
#endif
break;
}
+ /* Hack -- mana color factor */
+ case 'M':
+ case 'm':
+ {
+ /* Prompt */
+#ifdef JP
+ prt("¥³¥Þ¥ó¥É: ÄãËâÎÏ¿§ïçÃÍ", 18, 0);
+#else
+ prt("Command: Mana Color Threshold", 18, 0);
+#endif
+
+
+ /* Get a new value */
+ while (1)
+ {
+#ifdef JP
+ prt(format("¸½ºß¤ÎÄãËâÎÏ¿§ïçÃÍ: %d0%%",
+ mana_warn), 22, 0);
+#else
+ prt(format("Current mana color threshold: %d0%%",
+ mana_warn), 22, 0);
+#endif
+
+#ifdef JP
+ prt("ÄãËâÎÏïçÃÍ (0-9) ESC¤Ç·èÄê: ", 20, 0);
+#else
+ prt("Mana color Threshold (0-9 or ESC to accept): ", 20, 0);
+#endif
+
+ k = inkey();
+ if (k == ESCAPE) break;
+ else if (k == '?')
+ {
+#ifdef JP
+ (void)show_file(TRUE, "joption.txt#Manapoint", NULL, 0, 0);
+#else
+ (void)show_file(TRUE, "option.txt#Manapoint", NULL, 0, 0);
+#endif
+ Term_clear();
+ }
+ else if (isdigit(k)) mana_warn = D2I(k);
+ else bell();
+ }
+
+ break;
+ }
+
case '?':
#ifdef JP
(void)show_file(TRUE, "joption.txt", NULL, 0, 0);