#include "angband.h"
#include "cmd-spell.h"
#include "selfinfo.h"
+#include "projection.h"
+#include "spells-summon.h"
+#include "spells-status.h"
+#include "mutation.h"
* @param mode 処理内容 (SPELL_NAME / SPELL_DESC / SPELL_INFO / SPELL_CAST)
* @return SPELL_NAME / SPELL_DESC / SPELL_INFO 時には文字列ポインタを返す。SPELL_CAST時はNULL文字列を返す。
*/
-cptr do_craft_spell(SPELL_IDX spell, BIT_FLAGS mode)
+concptr do_craft_spell(SPELL_IDX spell, BIT_FLAGS mode)
{
bool name = (mode == SPELL_NAME) ? TRUE : FALSE;
bool desc = (mode == SPELL_DESC) ? TRUE : FALSE;
if (desc) return _("アイテムにかかった弱い呪いを解除する。", "Removes normal curses from equipped items.");
{
- if (cast)
- {
- if (remove_curse())
- {
- msg_print(_("誰かに見守られているような気がする。", "You feel as if someone is watching over you."));
- }
- }
+ if (cast) (void)remove_curse();
}
break;
{
int base = 3 * plev;
- int sides = 25;
+ DICE_SID sides = 25;
if (info) return info_duration(base, sides);
{
int base = 25;
- int sides = 30;
+ DICE_SID sides = 30;
if (info) return info_duration(base, sides);
{
int base = 30;
- int sides = 20;
+ DICE_SID sides = 20;
if (info) return info_duration(base, sides);
{
int base = plev;
- int sides = 20 + plev;
+ DICE_SID sides = 20 + plev;
if (info) return info_duration(base, sides);
{
if (cast)
{
- if (summon_specific(-1, p_ptr->y, p_ptr->x, plev, SUMMON_GOLEM, PM_FORCE_PET))
+ if (summon_specific(-1, p_ptr->y, p_ptr->x, plev, SUMMON_GOLEM, PM_FORCE_PET, '\0'))
{
msg_print(_("ゴーレムを作った。", "You make a golem."));
}
if (desc) return _("アイテムにかかった強力な呪いを解除する。", "Removes normal and heavy curse from equipped items.");
{
- if (cast)
- {
- if (remove_all_curse())
- {
- msg_print(_("誰かに見守られているような気がする。", "You feel as if someone is watching over you."));
- }
- }
+ if (cast) (void)remove_all_curse();
}
break;