screen_load();
}
- else bell();
+ else if (c !='2' && c !='4' && c !='6' && c !='8') bell();
}
/* Clean up */
#endif
screen_load();
}
- else bell();
+ else if (c !='2' && c !='4' && c !='6' && c !='8') bell();
}
/* Set race */
screen_load();
}
- else bell();
+ else if (c !='2' && c !='4' && c !='6' && c !='8') bell();
}
/* Set class */
screen_load();
}
- else bell();
+ else if (c !='2' && c !='4' && c !='6' && c !='8') bell();
}
/* Set seikaku */
}
break;
case 'm':
- if(cs != 6 && cval[cs] < 17)
+ if(cs != 6)
{
cval[cs] = 17;
os = 7;
}
break;
case 'n':
- if(cs != 6 && cval[cs] > 3)
+ if(cs != 6)
{
cval[cs] = 3;
os = 7;
put_str("ÂγÊ/Ãϰ̤κǾ®ÃÍ/ºÇÂçÃͤòÀßÄꤷ¤Æ²¼¤µ¤¤¡£", 10, 10);
put_str(" ¹à ÌÜ ºÇ¾®ÃÍ ºÇÂçÃÍ", 13,20);
#else
- put_str(" Parameter Mix Man", 13,20);
+ put_str(" Parameter Min Max", 13,20);
put_str("Set minimum/maximum attribute.", 10, 10);
#endif
/* Prompt for the minimum stats */
c = inkey();
- if (c == 'Q') birth_quit();
- if (c == 'S') return (FALSE);
- if (c == ESCAPE) break;
- if (c == ' ' || c == '\r')
- {
+ switch (c){
+ case 'Q':
+ birth_quit();
+ break;
+ case 'S':
+ return (FALSE);
+ case ESCAPE:
+ break; /*¸å¤Ç¤â¤¦°ì²óbreak¤»¤ó¤È*/
+ case ' ':
+ case '\r':
if(cs == 6) break;
- else cs++;
- }
- if (c == '8' || c == 'k')
- {
+ cs++;
+ c = '6';
+ break;
+ case '8':
+ case 'k':
if (cs-2 >= 0) cs -= 2;
- }
- if (c == '2' || c == 'j')
- {
+ break;
+ case '2':
+ case 'j':
if (cs < 6) cs += 2;
if (cs > 6) cs = 6;
- }
- if (c == '4' || c == 'h')
- {
+ break;
+ case '4':
+ case 'h':
if (cs > 0) cs--;
- }
- if (c == '6' || c == 'l')
- {
+ break;
+ case '6':
+ case 'l':
if (cs < 6) cs++;
- }
- if (c == '-' || c == '<')
- {
+ break;
+ case '-':
+ case '<':
if (cs != 6)
{
if(cs%2)
}
}
}
- }
- if (c == '+' || c == '>')
- {
+ break;
+ case '+':
+ case '>':
if (cs != 6)
{
if(cs%2)
}
}
}
- }
- if (c == 'm')
- {
+ break;
+ case 'm':
if(cs != 6)
{
if(cs%2)
}
}
}
- }
- if (c == 'n')
- {
+ break;
+ case 'n':
if(cs != 6)
{
if(cs%2)
}
}
}
- }
- if (c == '?') do_cmd_help();
- else if (c == '=')
- {
+ break;
+ case '?':
+ do_cmd_help();
+ break;
+ case '=':
screen_save();
#ifdef JP
do_cmd_options_aux(6, "½é´ü¥ª¥×¥·¥ç¥ó((*)¤Ï¥¹¥³¥¢¤Ë±Æ¶Á)");
#endif
screen_load();
+ break;
+ default:
+ bell();
+ break;
}
- else bell();
+ if(c == ESCAPE || ((c == ' ' || c == '\r') && cs == 6))break;
}
/* Input the minimum stats */
screen_load();
}
- else bell();
+ else if(c != '4' && c != '6')bell();
}
/* Set sex */