commit a14b5708c307addca346014da9b36526ddac1f67 from: the xhr date: Thu Sep 16 14:12:42 2021 UTC be case insensitive commit - 3f1228d5c6994c504f238b0c430373ad5bbedef5 commit + a14b5708c307addca346014da9b36526ddac1f67 blob - 60b663970077c18d8253c46c7877df7076dc903f blob + 8f77a1274b87e37ccf979ab5b30e3345e0534547 --- fight.c +++ fight.c @@ -48,11 +48,11 @@ info: return; } - if (strcmp(stat, "wits") == 0) { + if (strcasecmp(stat, "wits") == 0) { ival[0] = curchar->wits; - } else if (strcmp(stat, "shadow") == 0) { + } else if (strcasecmp(stat, "shadow") == 0) { ival[0] = curchar->shadow; - } else if (strcmp(stat, "heart") == 0) { + } else if (strcasecmp(stat, "heart") == 0) { ival[0] = curchar->heart; } else goto info; @@ -208,9 +208,9 @@ info: } else if (ret <= -20) return; - if (strcmp(stat, "iron") == 0) { + if (strcasecmp(stat, "iron") == 0) { ival[0] = curchar->iron; - } else if (strcmp(stat, "edge") == 0) { + } else if (strcasecmp(stat, "edge") == 0) { ival[0] = curchar->edge; } else goto info; @@ -261,9 +261,9 @@ info: } else if (ret <= -20) return; - if (strcmp(stat, "iron") == 0) { + if (strcasecmp(stat, "iron") == 0) { ival[0] = curchar->iron; - } else if (strcmp(stat, "edge") == 0) { + } else if (strcasecmp(stat, "edge") == 0) { ival[0] = curchar->edge; } else goto info; @@ -316,15 +316,15 @@ info: } else if (ret <= -20) return; - if (strcmp(stat, "iron") == 0) { + if (strcasecmp(stat, "iron") == 0) { ival[0] = curchar->iron; - } else if (strcmp(stat, "wits") == 0) { + } else if (strcasecmp(stat, "wits") == 0) { ival[0] = curchar->wits; - } else if (strcmp(stat, "edge") == 0) { + } else if (strcasecmp(stat, "edge") == 0) { ival[0] = curchar->edge; - } else if (strcmp(stat, "shadow") == 0) { + } else if (strcasecmp(stat, "shadow") == 0) { ival[0] = curchar->shadow; - } else if (strcmp(stat, "heart") == 0) { + } else if (strcasecmp(stat, "heart") == 0) { ival[0] = curchar->heart; } else goto info; blob - c4125589130256c4e25f2ef200d60105aed39b7d blob + 787b08d2de371a1006a4cc6a1e67f11ba370398a --- rolls.c +++ rolls.c @@ -289,14 +289,14 @@ info: return; } - if (strcmp(who, "me") == 0) { + if (strcasecmp(who, "me") == 0) { if (curchar->iron < curchar->wits) ival[0] = curchar->iron; else if (curchar->iron > curchar->wits) ival[0] = curchar->wits; else ival[0] = curchar->wits; - } else if (strcmp(who, "others") == 0) { + } else if (strcasecmp(who, "others") == 0) { ival[0] = curchar->wits; } else goto info; @@ -433,15 +433,15 @@ info: return; } - if (strcmp(stat, "iron") == 0) { + if (strcasecmp(stat, "iron") == 0) { ival[0] = curchar->iron; - } else if (strcmp(stat, "wits") == 0) { + } else if (strcasecmp(stat, "wits") == 0) { ival[0] = curchar->wits; - } else if (strcmp(stat, "edge") == 0) { + } else if (strcasecmp(stat, "edge") == 0) { ival[0] = curchar->edge; - } else if (strcmp(stat, "shadow") == 0) { + } else if (strcasecmp(stat, "shadow") == 0) { ival[0] = curchar->shadow; - } else if (strcmp(stat, "heart") == 0) { + } else if (strcasecmp(stat, "heart") == 0) { ival[0] = curchar->heart; } else goto info; @@ -480,11 +480,11 @@ info: } else if (ret <= -20) return; - if (strcmp(stat, "iron") == 0) { + if (strcasecmp(stat, "iron") == 0) { ival[0] = curchar->iron; - } else if (strcmp(stat, "shadow") == 0) { + } else if (strcasecmp(stat, "shadow") == 0) { ival[0] = curchar->shadow; - } else if (strcmp(stat, "heart") == 0) { + } else if (strcasecmp(stat, "heart") == 0) { ival[0] = curchar->heart; } else goto info; @@ -527,15 +527,15 @@ info: } else if (ret <= -20) return; - if (strcmp(stat, "iron") == 0) { + if (strcasecmp(stat, "iron") == 0) { ival[0] = curchar->iron; - } else if (strcmp(stat, "wits") == 0) { + } else if (strcasecmp(stat, "wits") == 0) { ival[0] = curchar->wits; - } else if (strcmp(stat, "edge") == 0) { + } else if (strcasecmp(stat, "edge") == 0) { ival[0] = curchar->edge; - } else if (strcmp(stat, "shadow") == 0) { + } else if (strcasecmp(stat, "shadow") == 0) { ival[0] = curchar->shadow; - } else if (strcmp(stat, "heart") == 0) { + } else if (strcasecmp(stat, "heart") == 0) { ival[0] = curchar->heart; } else goto info;