#include "angband.h"
#include "cmd-spell.h"
+#include "projection.h"
+#include "spells-summon.h"
+#include "mutation.h"
+#include "spells-status.h"
/*!
* @param mode 処理内容 (SPELL_NAME / SPELL_DESC / SPELL_INFO / SPELL_CAST)
* @return SPELL_NAME / SPELL_DESC / SPELL_INFO 時には文字列ポインタを返す。SPELL_CAST時はNULL文字列を返す。
*/
-cptr do_trump_spell(SPELL_IDX spell, BIT_FLAGS mode)
+concptr do_trump_spell(SPELL_IDX spell, BIT_FLAGS mode)
{
bool name = (mode == SPELL_NAME) ? TRUE : FALSE;
bool desc = (mode == SPELL_DESC) ? TRUE : FALSE;
bool info = (mode == SPELL_INFO) ? TRUE : FALSE;
bool cast = (mode == SPELL_CAST) ? TRUE : FALSE;
bool fail = (mode == SPELL_FAIL) ? TRUE : FALSE;
- static const char s_random[] = _("ランダム", "random");
- int dir;
- int plev = p_ptr->lev;
+ DIRECTION dir;
+ PLAYER_LEVEL plev = p_ptr->lev;
switch (spell)
{
if (desc) return _("カードの占いをする。", "Causes random effects.");
{
- if (info) return s_random;
+ if (info) return KWD_RANDOM;
if (cast)
{
{
int base = 25;
- int sides = 30;
+ DICE_SID sides = 30;
if (info) return info_duration(base, sides);
if (desc) return _("アイテムを自分の足元へ移動させる。", "Pulls a distant item close to you.");
{
- int weight = plev * 15;
+ WEIGHT weight = plev * 15;
if (info) return info_weight(weight);
{
if (cast || fail)
{
- int x, y;
+ POSITION x, y;
int type;
if (cast)
{
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;
"Detects all monsters, traps, doors, stairs, treasures and items in your vicinity.");
{
- int rad = DETECT_RAD_DEFAULT;
+ POSITION rad = DETECT_RAD_DEFAULT;
if (info) return info_radius(rad);
{
HIT_POINT dam = plev * 2;
- int rad = 2;
+ POSITION rad = 2;
if (info) return info_multi_damage(dam);