1 #include "racial/racial-kutar.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 "system/player-type-definition.h"
8 #include "view/display-messages.h"
11 * @brief つぶれるの継続時間をセットする / Set "tsubureru", notice observable changes
13 * @param do_dec 現在の継続時間より長い値のみ上書きする
14 * @return ステータスに影響を及ぼす変化があった場合TRUEを返す。
16 bool set_leveling(PlayerType *player_ptr, TIME_EFFECT v, bool do_dec)
19 v = (v > 10000) ? 10000 : (v < 0) ? 0 : v;
21 if (player_ptr->is_dead)
25 if (player_ptr->tsubureru && !do_dec) {
26 if (player_ptr->tsubureru > v)
28 } else if (!player_ptr->tsubureru) {
29 msg_print(_("横に伸びた。", "Your body expands horizontally."));
33 if (player_ptr->tsubureru) {
34 msg_print(_("もう横に伸びていない。", "Your body returns to normal."));
39 player_ptr->tsubureru = v;
40 player_ptr->redraw |= (PR_STATUS);
46 disturb(player_ptr, false, false);
47 player_ptr->update |= (PU_BONUS);
48 handle_stuff(player_ptr);