1 #include "spell-kind/blood-curse.h"
2 #include "effect/effect-characteristics.h"
3 #include "floor/floor.h"
5 #include "monster-floor/monster-summon.h"
6 #include "monster-floor/place-monster-types.h"
7 #include "spell-kind/earthquake.h"
8 #include "spell-kind/spells-sight.h"
9 #include "spell-kind/spells-teleport.h"
10 #include "spell/process-effect.h"
11 #include "spell/spell-types.h"
12 #include "spell/spells-summon.h"
13 #include "status/base-status.h"
14 #include "status/experience.h"
15 #include "system/monster-type-definition.h"
16 #include "view/display-messages.h"
18 void blood_curse_to_enemy(player_type *caster_ptr, MONSTER_IDX m_idx)
20 monster_type *m_ptr = &caster_ptr->current_floor_ptr->m_list[m_idx];
21 grid_type *g_ptr = &caster_ptr->current_floor_ptr->grid_array[m_ptr->fy][m_ptr->fx];
22 BIT_FLAGS curse_flg = (PROJECT_GRID | PROJECT_ITEM | PROJECT_KILL | PROJECT_JUMP);
24 bool is_first_loop = TRUE;
25 while (is_first_loop || one_in_(5)) {
26 is_first_loop = FALSE;
27 switch (randint1(28)) {
31 msg_print(_("地面が揺れた...", "The ground trembles..."));
32 earthquake(caster_ptr, m_ptr->fy, m_ptr->fx, 4 + randint0(4), 0);
42 int extra_dam = damroll(10, 10);
43 msg_print(_("純粋な魔力の次元への扉が開いた!", "A portal opens to a plane of raw mana!"));
44 project(caster_ptr, 0, 8, m_ptr->fy, m_ptr->fx, extra_dam, GF_MANA, curse_flg, -1);
52 msg_print(_("空間が歪んだ!", "Space warps about you!"));
54 teleport_away(caster_ptr, g_ptr->m_idx, damroll(10, 10), TELEPORT_PASSIVE);
56 count += activate_hi_summon(caster_ptr, m_ptr->fy, m_ptr->fx, TRUE);
64 msg_print(_("エネルギーのうねりを感じた!", "You feel a surge of energy!"));
65 project(caster_ptr, 0, 7, m_ptr->fy, m_ptr->fx, 50, GF_DISINTEGRATE, curse_flg, -1);
74 aggravate_monsters(caster_ptr, 0);
80 count += activate_hi_summon(caster_ptr, m_ptr->fy, m_ptr->fx, TRUE);
88 bool pet = !one_in_(3);
89 BIT_FLAGS mode = PM_ALLOW_GROUP;
94 mode |= (PM_NO_PET | PM_FORCE_FRIENDLY);
96 count += summon_specific(caster_ptr, (pet ? -1 : 0), caster_ptr->y, caster_ptr->x,
97 (pet ? caster_ptr->lev * 2 / 3 + randint1(caster_ptr->lev / 2) : caster_ptr->current_floor_ptr->dun_level), 0, mode);
105 if (caster_ptr->hold_exp && (randint0(100) < 75))
108 msg_print(_("経験値が体から吸い取られた気がする!", "You feel your experience draining away..."));
109 if (caster_ptr->hold_exp)
110 lose_exp(caster_ptr, caster_ptr->exp / 160);
112 lose_exp(caster_ptr, caster_ptr->exp / 16);
120 for (int i = 0; i < A_MAX; i++) {
121 bool is_first_dec_stat = TRUE;
122 while (is_first_dec_stat || one_in_(2)) {
123 (void)do_dec_stat(caster_ptr, i);
127 (void)do_dec_stat(caster_ptr, randint0(6));