OSDN Git Service

[Fix] 属性への免疫を唱えた時のメッセージ
[hengbandforosx/hengbandosx.git] / src / spell / spells-describer.cpp
1 #include "spell/spells-describer.h"
2 #include "locale/language-switcher.h"
3 #include "object/tval-types.h"
4
5 /*!
6  * @brief 領域魔法に応じて技能の名称を返す。
7  * @param tval 魔法書のtval
8  * @return 領域魔法の技能名称を保管した文字列ポインタ
9  */
10 std::string spell_category_name(ItemKindType tval)
11 {
12     switch (tval) {
13     case ItemKindType::HISSATSU_BOOK:
14         return _("必殺技", "art");
15     case ItemKindType::LIFE_BOOK:
16         return _("祈り", "prayer");
17     case ItemKindType::MUSIC_BOOK:
18         return _("歌", "song");
19     default:
20         return _("呪文", "spell");
21     }
22 }