OSDN Git Service

separate enc_stat_opt from enc_stat
authorSHIRAKATA Kentaro <argrath@ub32.org>
Sun, 5 Apr 2020 19:17:50 +0000 (04:17 +0900)
committerSHIRAKATA Kentaro <argrath@ub32.org>
Tue, 7 Apr 2020 19:40:28 +0000 (04:40 +0900)
src/botl.c

index 6900d40..9c034f8 100644 (file)
@@ -19,8 +19,11 @@ extern const char *hu_stat[]; /* defined in eat.c */
 const char *const enc_stat[] = { "",         "Burdened",  "Stressed",
                                  "Strained", "Overtaxed", "Overloaded" };
 #else
+      /*\83I\83v\83V\83\87\83\93\82Ì\83p\81[\83X\82Å\89p\8cê\94Å\82à\95K\97v*/
 const char *const enc_stat[] = { "",     "\82æ\82ë\82ß\82«", "\88³\94\97",
                                  "\8cÀ\8aE", "\89×\8fd",     "\92´\89ß"};
+const char *const enc_stat_opt[] = { "",         "Burdened",  "Stressed",
+                                     "Strained", "Overtaxed", "Overloaded" };
 #endif
 
 STATIC_OVL NEARDATA int mrank_sz = 0; /* loaded by max_rank_sz (from u_init) */
@@ -2210,10 +2213,17 @@ boolean from_configfile;
                 up = TRUE;
             changed = TRUE;
         } else if (fld == BL_CAP
+#if 0 /*JP*/
                    && is_fld_arrayvalues(s[sidx], enc_stat,
                                          SLT_ENCUMBER, OVERLOADED + 1,
                                          &kidx)) {
             txt = enc_stat[kidx];
+#else
+                   && is_fld_arrayvalues(s[sidx], enc_stat_opt,
+                                         SLT_ENCUMBER, OVERLOADED + 1,
+                                         &kidx)) {
+            txt = enc_stat_opt[kidx];
+#endif
             txtval = TRUE;
         } else if (fld == BL_ALIGN
                    && is_fld_arrayvalues(s[sidx], aligntxt, 0, 3, &kidx)) {
@@ -3449,9 +3459,15 @@ choose_value:
                  || fld == BL_TITLE) ? "Choose" : "Enter",
                 initblstats[fld].fldname);
         if (fld == BL_CAP) {
+#if 0 /*JP*/
             int rv = query_arrayvalue(qry_buf,
                                       enc_stat,
                                       SLT_ENCUMBER, OVERLOADED + 1);
+#else
+            int rv = query_arrayvalue(qry_buf,
+                                      enc_stat_opt,
+                                      SLT_ENCUMBER, OVERLOADED + 1);
+#endif
 
             if (rv < SLT_ENCUMBER)
                 goto choose_behavior;