OSDN Git Service

[Refactor] #40567 Moved functions can be static in z-term.c/h
[hengband/hengband.git] / src / player / player-damage.c
index bcb641a..abee6f9 100644 (file)
@@ -332,6 +332,38 @@ HIT_POINT cold_dam(player_type *creature_ptr, HIT_POINT dam, concptr kb_str, int
     return get_damage;
 }
 
+#ifdef JP
+/*
+ * Move to a location and, using an attr, add a string vertically
+ */
+static errr term_putstr_v(TERM_LEN x, TERM_LEN y, int n, byte a, concptr s)
+{
+    errr res;
+    int y0 = y;
+
+    for (int i = 0; i < n && s[i] != 0; i++) {
+        /* Move first */
+        if ((res = term_gotoxy(x, y0)) != 0)
+            return (res);
+
+        if (iskanji(s[i])) {
+            if ((res = term_addstr(2, a, &s[i])) != 0)
+                return (res);
+            i++;
+            y0++;
+            if (s[i] == 0)
+                break;
+        } else {
+            if ((res = term_addstr(1, a, &s[i])) != 0)
+                return (res);
+            y0++;
+        }
+    }
+
+    return 0;
+}
+#endif
+
 /*
  * Decreases players hit points and sets death flag if necessary
  *