OSDN Git Service

[Refactor] #40414 Separated display-lore-magics.c/h from monster-lore.c
[hengband/hengband.git] / src / view / display-lore-magics.c
1 #include "view/display-lore-magics.h"
2
3 void diaplay_monster_breath(lore_type *lore_ptr)
4 {
5     lore_ptr->breath = FALSE;
6     if (lore_ptr->vn <= 0)
7         return;
8
9     lore_ptr->breath = TRUE;
10     hooked_roff(format(_("%^sは", "%^s"), wd_he[lore_ptr->msex]));
11     for (int n = 0; n < lore_ptr->vn; n++) {
12 #ifdef JP
13         if (n != 0)
14             hooked_roff("や");
15 #else
16         if (n == 0)
17             hooked_roff(" may breathe ");
18         else if (n < lore_ptr->vn - 1)
19             hooked_roff(", ");
20         else
21             hooked_roff(" or ");
22 #endif
23         hook_c_roff(lore_ptr->color[n], lore_ptr->vp[n]);
24     }
25
26 #ifdef JP
27     hooked_roff("のブレスを吐くことがある");
28 #endif
29 }