commit - ad0031e7ce0d7fb149f4edde12cce981d72f755a
commit + 219a93cc7645d596490ceda42307f21de3dc15bc
blob - 2e4f55fd846a5563558ecd8e64dbb0f2d70a532c
blob + 36560f40b5a517c1b9441dd9c4abc0ef88429bc0
--- fight.c
+++ fight.c
}
ret = get_args_from_cmd(cmd, stat, &ival[1]);
- if (ret <= -10) {
+ if (ret >= 10) {
info:
printf("\nPlease specify the stat you'd like to use in this move\n\n");
printf("heart\t- You are facing off against your foe\n");
}
ret = get_args_from_cmd(cmd, stat, &ival[1]);
- if (ret <= -10) {
+ if (ret >= 10) {
info:
printf("Please specify the stat you'd like to use in this move\n\n");
printf("iron\t- You attack in close quarters\n");
}
ret = get_args_from_cmd(cmd, stat, &ival[1]);
- if (ret <= -10) {
+ if (ret >= 10) {
info:
printf("Please specify the stat you'd like to use in this move\n\n");
printf("iron\t- You fight in close quarters\n");
}
ret = get_args_from_cmd(cmd, stat, &ival[1]);
- if (ret <= -10) {
+ if (ret >= 10) {
info:
printf("Please specify the stat you'd like to use in this move\n\n");
printf("edge\t- Fight at range, or using your speed and the terrain\n");
blob - 36ca03c01350d6b561ed936bf84d370d8d8d6192
blob + c4125589130256c4e25f2ef200d60105aed39b7d
--- rolls.c
+++ rolls.c
}
ret = get_args_from_cmd(cmd, stat, &ival[1]);
- if (ret <= -10) {
+ if (ret >= 10) {
info:
printf("Please specify the stat you'd like to use in this move\n\n");
printf("heart\t- You charm, pacify, barter, or convince\n");
}
ret = get_args_from_cmd(cmd, stat, &ival[1]);
- if (ret <= -10) {
+ if (ret >= 10) {
info:
printf("Please specify the stat you'd like to use in this move\n\n");
printf("edge\t- Act with speed, agility, or precision\n");
/* First token is a stat */
i = 0;
if (tokens[i] == NULL)
- return -10;
+ return 10;
else if (strlen(tokens[i]) == 0)
- return -11;
+ return 11;
log_debug("stat token: %s\n", tokens[i]);
snprintf(stat, MAX_STAT_LEN, "%s", tokens[i]);