1 #include "spell-realm/spells-demon.h"
2 #include "core/disturbance.h"
3 #include "core/player-redraw-types.h"
4 #include "core/player-update-types.h"
5 #include "core/stuff-handler.h"
6 #include "game-option/disturbance-options.h"
7 #include "view/display-messages.h"
10 * @brief 一時的火炎のオーラの継続時間をセットする / Set "tim_sh_fire", notice observable changes
12 * @param do_dec 現在の継続時間より長い値のみ上書きする
13 * @return ステータスに影響を及ぼす変化があった場合TRUEを返す。
15 bool set_tim_sh_fire(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
18 v = (v > 10000) ? 10000 : (v < 0) ? 0 : v;
20 if (creature_ptr->is_dead)
24 if (creature_ptr->tim_sh_fire && !do_dec) {
25 if (creature_ptr->tim_sh_fire > v)
27 } else if (!creature_ptr->tim_sh_fire) {
28 msg_print(_("体が炎のオーラで覆われた。", "You are enveloped by a fiery aura!"));
32 if (creature_ptr->tim_sh_fire) {
33 msg_print(_("炎のオーラが消えた。", "The fiery aura disappeared."));
38 creature_ptr->tim_sh_fire = v;
39 creature_ptr->redraw |= (PR_STATUS);
45 disturb(creature_ptr, FALSE, FALSE);
46 creature_ptr->update |= (PU_BONUS);
47 handle_stuff(creature_ptr);