#include "angband.h"
#include "cmd-spell.h"
#include "selfinfo.h"
+#include "projection.h"
+#include "avatar.h"
+#include "spells-status.h"
/*!
* @brief 仙術領域魔法の各処理を行う
* @param mode 処理内容 (SPELL_NAME / SPELL_DESC / SPELL_INFO / SPELL_CAST)
* @return SPELL_NAME / SPELL_DESC / SPELL_INFO 時には文字列ポインタを返す。SPELL_CAST時はNULL文字列を返す。
*/
-cptr do_sorcery_spell(SPELL_IDX spell, BIT_FLAGS mode)
+concptr do_sorcery_spell(SPELL_IDX spell, BIT_FLAGS mode)
{
bool name = (mode == SPELL_NAME) ? TRUE : FALSE;
bool desc = (mode == SPELL_DESC) ? TRUE : FALSE;
if (desc) return _("光源が照らしている範囲か部屋全体を永久に明るくする。", "Lights up nearby area and the inside of a room permanently.");
{
- int dice = 2;
- int sides = plev / 2;
+ DICE_NUMBER dice = 2;
+ DICE_SID sides = plev / 2;
POSITION rad = plev / 10 + 1;
if (info) return info_damage(dice, sides, 0);
{
int base = plev;
- int sides = 20 + plev;
+ DICE_SID sides = 20 + plev;
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 = 15;
- int sides = 20;
+ DICE_SID sides = 20;
if (info) return info_delay(base, sides);
if (cast)
{
- if (!word_of_recall()) return NULL;
+ if (!recall_player(p_ptr, randint0(21) + 15)) return NULL;
}
}
break;
"Sets a glyph under you. The glyph will explode when a monster moves on it.");
{
- int dice = 7;
- int sides = 7;
+ DICE_NUMBER dice = 7;
+ DICE_SID sides = 7;
int base = plev;
if (info) return info_damage(dice, sides, base);
if (desc) return _("アイテムを自分の足元へ移動させる。", "Pulls a distant item close to you.");
{
- int weight = plev * 15;
+ WEIGHT weight = plev * 15;
if (info) return info_weight(weight);
{
int base = 25;
- int sides = 30;
+ DICE_SID sides = 30;
if (info) return info_duration(base, sides);