Skip to content

Commit 0f95456

Browse files
committed
Let face danger also accept a bonus value
1 parent 645b552 commit 0f95456

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

rolls.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,8 @@ cmd_face_danger(char *stat)
441441

442442
CURCHAR_CHECK();
443443

444-
if (strlen(stat) == 0) {
444+
ret = get_args_from_cmd(stat, stat, &ival[1]);
445+
if (ret >= 10) {
445446
info:
446447
printf("Please specify the stat you'd like to use in this move\n\n");
447448
printf("edge\t- Act with speed, agility, or precision\n");
@@ -451,7 +452,8 @@ cmd_face_danger(char *stat)
451452
printf("wits\t- Act with expertise, insight, or observation\n\n");
452453
printf("Example: facedanger iron\n");
453454
return;
454-
}
455+
} else if (ret <= -20)
456+
return;
455457

456458
ival[0] = return_char_stat(stat,
457459
STAT_EDGE|STAT_HEART|STAT_IRON|STAT_WITS|STAT_SHADOW);

0 commit comments

Comments
 (0)