#include "angband.h"
#include "core.h"
#include "util.h"
+#include "main/sound-definitions-table.h"
#include "creature.h"
#include "artifact.h"
-#include "cmd-pet.h"
-#include "cmd-dump.h"
+#include "io/write-diary.h"
+#include "cmd/cmd-pet.h"
+#include "cmd/cmd-dump.h"
#include "floor.h"
#include "grid.h"
#include "trap.h"
#include "spells-status.h"
#include "spells-floor.h"
#include "spells-diceroll.h"
-#include "realm-hex.h"
-#include "autopick.h"
+#include "realm/realm-hex.h"
+#include "autopick/autopick.h"
#include "object-flavor.h"
#include "object-hook.h"
#include "monster-status.h"
#include "dungeon.h"
#include "floor-events.h"
#include "feature.h"
-#include "view-mainwindow.h"
-#include "objectkind.h"
+#include "view/display-main-window.h"
+#include "object/object-kind.h"
#include "monsterrace.h"
#include "targeting.h"
-#include "realm-song.h"
+#include "realm/realm-song.h"
#include "english.h"
+#include "effect/spells-effect-util.h"
+#include "spell/spells-type.h"
/*!
* @brief プレイヤー周辺の地形を感知する
BIT_FLAGS flg = (PROJECT_GRID | PROJECT_ITEM | PROJECT_KILL | PROJECT_JUMP);
bool is_first_curse = TRUE;
floor_type *floor_ptr = target_ptr->current_floor_ptr;
- while (is_first_curse || one_in_(3) && !stop_ty)
+ while (is_first_curse || (one_in_(3) && !stop_ty))
{
is_first_curse = FALSE;
switch (randint1(34))
earthquake(target_ptr, target_ptr->y, target_ptr->x, 5 + randint0(10), 0);
if (!one_in_(6)) break;
}
+ /* Fall through */
case 30: case 31:
if (!(*count))
{
take_hit(target_ptr, DAMAGE_NOESCAPE, dam, _("純粋な魔力の解放", "released pure mana"), -1);
if (!one_in_(6)) break;
}
+ /* Fall through */
case 32: case 33:
if (!(*count))
{
if (randint0(13)) (*count) += activate_hi_summon(target_ptr, target_ptr->y, target_ptr->x, FALSE);
if (!one_in_(6)) break;
}
+ /* Fall through */
case 34:
msg_print(_("エネルギーのうねりを感じた!", "You feel a surge of energy!"));
wall_breaker(target_ptr);
}
if (!one_in_(6)) break;
+ /* Fall through */
case 1: case 2: case 3: case 16: case 17:
aggravate_monsters(target_ptr, 0);
if (!one_in_(6)) break;
+ /* Fall through */
case 4: case 5: case 6:
(*count) += activate_hi_summon(target_ptr, target_ptr->y, target_ptr->x, FALSE);
if (!one_in_(6)) break;
+ /* Fall through */
case 7: case 8: case 9: case 18:
(*count) += summon_specific(target_ptr, 0, target_ptr->y, target_ptr->x, floor_ptr->dun_level, 0, (PM_ALLOW_GROUP | PM_ALLOW_UNIQUE | PM_NO_PET));
if (!one_in_(6)) break;
+ /* Fall through */
case 10: case 11: case 12:
msg_print(_("経験値が体から吸い取られた気がする!", "You feel your experience draining away..."));
lose_exp(target_ptr, target_ptr->exp / 16);
if (!one_in_(6)) break;
+ /* Fall through */
case 13: case 14: case 15: case 19: case 20:
{
bool is_statue = stop_ty;
if (!one_in_(6)) break;
}
+ /* Fall through */
case 21: case 22: case 23:
(void)do_dec_stat(target_ptr, randint0(6));
if (!one_in_(6)) break;
+ /* Fall through */
case 24:
msg_print(_("ほえ?私は誰?ここで何してる?", "Huh? Who am I? What am I doing here?"));
lose_all_info(target_ptr);
if (!one_in_(6)) break;
+ /* Fall through */
case 25:
if ((floor_ptr->dun_level > 65) && !stop_ty)
{
}
if (!one_in_(6)) break;
+ /* Fall through */
default:
for (int i = 0; i < A_MAX; i++)
{
POSITION y = caster_ptr->y;
POSITION x = caster_ptr->x;
- teleport_player(caster_ptr, 10 + randint1(90), 0L);
+ teleport_player(caster_ptr, 10 + randint1(90), TELEPORT_SPONTANEOUS);
object_wipe(q_ptr);
object_prep(q_ptr, lookup_kind(TV_STATUE, SV_WOODEN_STATUE));
break;
case 16: case 17:
wall_breaker(caster_ptr);
+ break;
case 18:
sleep_monsters_touch(caster_ptr);
break;
if (randint0(caster_ptr->skill_dis) < 7)
msg_print(_("うまく逃げられなかった。", "You failed to run away."));
else
- teleport_player(caster_ptr, 30, 0L);
+ teleport_player(caster_ptr, 30, TELEPORT_SPONTANEOUS);
return TRUE;
}