Commit Diff


commit - ad0031e7ce0d7fb149f4edde12cce981d72f755a
commit + 219a93cc7645d596490ceda42307f21de3dc15bc
blob - 2e4f55fd846a5563558ecd8e64dbb0f2d70a532c
blob + 36560f40b5a517c1b9441dd9c4abc0ef88429bc0
--- fight.c
+++ fight.c
@@ -36,7 +36,7 @@ cmd_enter_the_fray(char *cmd)
 	}
 
 	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");
@@ -198,7 +198,7 @@ cmd_strike(char *cmd)
 	}
 
 	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");
@@ -251,7 +251,7 @@ cmd_clash(char *cmd)
 	}
 
 	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");
@@ -303,7 +303,7 @@ cmd_battle(char *cmd)
 	}
 
 	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
@@ -469,7 +469,7 @@ cmd_compel(char *cmd)
 	}
 
 	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");
@@ -514,7 +514,7 @@ cmd_secure_an_advantage(char *cmd)
 	}
 
 	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");
@@ -766,9 +766,9 @@ get_args_from_cmd(char *cmd, char *stat, int *ival)
 	/* 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]);