1 #include "spell/spells-staff-only.h"
2 #include "effect/effect-characteristics.h"
3 #include "effect/effect-processor.h"
4 #include "hpmp/hp-mp-processor.h"
5 #include "player/player-damage.h"
6 #include "spell-kind/spells-sight.h"
7 #include "spell/spell-types.h"
8 #include "status/bad-status-setter.h"
9 #include "status/body-improvement.h"
10 #include "system/player-type-definition.h"
11 #include "view/display-messages.h"
15 * @param player_ptr プレイヤーへの参照ポインタ
16 * @magic 魔法の効果である場合TRUE (杖と同じ効果の呪文はあったか? 要調査)
17 * @powerful 効果が増強される時TRUE (TRUEになるタイミングはあるか? 要調査)
19 bool cleansing_nova(player_type *player_ptr, bool magic, bool powerful)
22 if (dispel_evil(player_ptr, powerful ? 225 : 150)) {
26 int k = 3 * player_ptr->lev;
27 if (set_protevil(player_ptr, (magic ? 0 : player_ptr->protevil) + randint1(25) + k, false)) {
31 BadStatusSetter bss(player_ptr);
36 if (bss.afraidness(0)) {
40 if (hp_player(player_ptr, 50)) {
57 * @param player_ptr プレイヤーへの参照ポインタ
58 * @powerful 効果が増強される時TRUE (TRUEになるタイミングはあるか? 要調査)
60 bool unleash_mana_storm(player_type *player_ptr, bool powerful)
62 msg_print(_("強力な魔力が敵を引き裂いた!", "Mighty magics rend your enemies!"));
63 project(player_ptr, 0, (powerful ? 7 : 5), player_ptr->y, player_ptr->x, (randint1(200) + (powerful ? 500 : 300)) * 2, GF_MANA,
64 PROJECT_KILL | PROJECT_ITEM | PROJECT_GRID);
66 bool is_special_class = player_ptr->pclass != PlayerClassType::MAGE;
67 is_special_class &= player_ptr->pclass != PlayerClassType::HIGH_MAGE;
68 is_special_class &= player_ptr->pclass != PlayerClassType::SORCERER;
69 is_special_class &= player_ptr->pclass != PlayerClassType::MAGIC_EATER;
70 is_special_class &= player_ptr->pclass != PlayerClassType::BLUE_MAGE;
71 is_special_class &= player_ptr->pclass != PlayerClassType::ELEMENTALIST;
73 (void)take_hit(player_ptr, DAMAGE_NOESCAPE, 50, _("コントロールし難い強力な魔力の解放", "unleashing magics too mighty to control"));