#include "main/music-definitions-table.h"
#include "main/sound-definitions-table.h"
#include "main/sound-of-music.h"
+#include "mind/mind-ninja.h"
#include "mind/snipe-types.h"
#include "monster/monster-describer.h"
#include "monster-floor/monster-death.h"
#include "io/targeting.h"
#include "io/write-diary.h"
#include "market/arena.h"
+#include "mind/mind-ninja.h"
#include "monster-race/monster-race.h"
#include "monster-race/race-flags1.h"
#include "monster/monster-compaction.h"
#include "monster/monster-processor.h"
#include "monster/monster-status.h"
#include "monster/monster-util.h"
-#include "player/player-effects.h"
#include "player/player-move.h"
#include "player/special-defense-types.h"
#include "realm/realm-song-numbers.h"
#include "grid/trap.h"
#include "main/sound-definitions-table.h"
#include "main/sound-of-music.h"
+#include "mind/mind-ninja.h"
#include "monster/monster-update.h"
-#include "player/player-effects.h"
#include "player/special-defense-types.h"
#include "room/rooms.h"
#include "spell/process-effect.h" // 暫定、後で消す.
#include "game-option/map-screen-options.h"
#include "grid/grid.h"
#include "main/sound-of-music.h"
+#include "mind/mind-ninja.h"
#include "monster-race/monster-race.h"
#include "monster-race/race-flags1.h"
#include "monster-race/race-flags7.h"
#include "sv-definition/sv-amulet-types.h"
#include "sv-definition/sv-protector-types.h"
#include "sv-definition/sv-ring-types.h"
-#include "player/player-effects.h"
#include "player/player-move.h"
#include "util/bit-flags-calculator.h"
#include "view/display-messages.h"
#include "io/write-diary.h"
#include "main/sound-of-music.h"
#include "mind/mind-mirror-master.h"
+#include "mind/mind-ninja.h"
#include "monster-floor/monster-generator.h"
#include "monster-floor/monster-remover.h"
#include "monster-floor/monster-summon.h"
#include "object-hook/hook-enchant.h"
#include "pet/pet-util.h"
#include "player/player-class.h"
-#include "player/player-effects.h"
#include "player/player-personalities-types.h"
#include "player/special-defense-types.h"
#include "spell-kind/spells-floor.h"
#include "grid/grid.h"
#include "grid/trap.h"
#include "io/targeting.h"
+#include "mind/mind-ninja.h"
#include "monster-floor/monster-generator.h"
#include "monster-floor/monster-remover.h"
#include "monster/monster-update.h"
#include "object/object-generator.h"
#include "object/object-kind.h"
#include "perception/object-perception.h"
-#include "player/player-effects.h"
#include "player/special-defense-types.h"
#include "room/rooms.h"
#include "util/bit-flags-calculator.h"
#include "effect/effect-characteristics.h"
#include "effect/spells-effect-util.h"
#include "floor/floor-object.h"
+#include "game-option/disturbance-options.h"
#include "grid/feature.h"
#include "io/targeting.h"
#include "monster-race/monster-race.h"
#include "object/object-generator.h"
#include "object/object-kind-hook.h"
#include "player/player-effects.h"
+#include "player/player-move.h"
#include "player/special-defense-types.h"
#include "spell-kind/spells-teleport.h"
#include "util/bit-flags-calculator.h"
creature_ptr->energy_use = 0;
}
+
+/*!
+ * @brief 超隠密状態をセットする
+ * @param set TRUEならば超隠密状態になる。
+ * @return ステータスに影響を及ぼす変化があった場合TRUEを返す。
+ */
+bool set_superstealth(player_type *creature_ptr, bool set)
+{
+ bool notice = FALSE;
+
+ if (creature_ptr->is_dead)
+ return FALSE;
+
+ if (set) {
+ if (!(creature_ptr->special_defense & NINJA_S_STEALTH)) {
+ if (creature_ptr->current_floor_ptr->grid_array[creature_ptr->y][creature_ptr->x].info & CAVE_MNLT) {
+ msg_print(_("敵の目から薄い影の中に覆い隠された。", "You are mantled in weak shadow from ordinary eyes."));
+ creature_ptr->monlite = creature_ptr->old_monlite = TRUE;
+ } else {
+ msg_print(_("敵の目から影の中に覆い隠された!", "You are mantled in shadow from ordinary eyes!"));
+ creature_ptr->monlite = creature_ptr->old_monlite = FALSE;
+ }
+
+ notice = TRUE;
+ creature_ptr->special_defense |= NINJA_S_STEALTH;
+ }
+ } else {
+ if (creature_ptr->special_defense & NINJA_S_STEALTH) {
+ msg_print(_("再び敵の目にさらされるようになった。", "You are exposed to common sight once more."));
+ notice = TRUE;
+ creature_ptr->special_defense &= ~(NINJA_S_STEALTH);
+ }
+ }
+
+ if (!notice)
+ return FALSE;
+ creature_ptr->redraw |= (PR_STATUS);
+
+ if (disturb_state)
+ disturb(creature_ptr, FALSE, FALSE);
+ return TRUE;
+}
void print_surprise_attack(player_attack_type *pa_ptr);
void calc_surprise_attack_damage(player_type *attacker_ptr, player_attack_type *pa_ptr);
void hayagake(player_type *creature_ptr);
+bool set_superstealth(player_type *creature_ptr, bool set);
#include "io/write-diary.h"
#include "main/sound-definitions-table.h"
#include "main/sound-of-music.h"
+#include "mind/mind-ninja.h"
#include "monster-attack/monster-attack-effect.h"
#include "monster-attack/monster-attack-types.h"
#include "monster-floor/monster-death.h"
}
/*!
- * @brief 超隠密状態をセットする
- * @param set TRUEならば超隠密状態になる。
- * @return ステータスに影響を及ぼす変化があった場合TRUEを返す。
- */
-bool set_superstealth(player_type *creature_ptr, bool set)
-{
- bool notice = FALSE;
-
- if (creature_ptr->is_dead)
- return FALSE;
-
- if (set) {
- if (!(creature_ptr->special_defense & NINJA_S_STEALTH)) {
- if (creature_ptr->current_floor_ptr->grid_array[creature_ptr->y][creature_ptr->x].info & CAVE_MNLT) {
- msg_print(_("敵の目から薄い影の中に覆い隠された。", "You are mantled in weak shadow from ordinary eyes."));
- creature_ptr->monlite = creature_ptr->old_monlite = TRUE;
- } else {
- msg_print(_("敵の目から影の中に覆い隠された!", "You are mantled in shadow from ordinary eyes!"));
- creature_ptr->monlite = creature_ptr->old_monlite = FALSE;
- }
-
- notice = TRUE;
- creature_ptr->special_defense |= NINJA_S_STEALTH;
- }
- } else {
- if (creature_ptr->special_defense & NINJA_S_STEALTH) {
- msg_print(_("再び敵の目にさらされるようになった。", "You are exposed to common sight once more."));
- notice = TRUE;
- creature_ptr->special_defense &= ~(NINJA_S_STEALTH);
- }
- }
-
- if (!notice)
- return FALSE;
- creature_ptr->redraw |= (PR_STATUS);
-
- if (disturb_state)
- disturb(creature_ptr, FALSE, FALSE);
- return TRUE;
-}
-
-/*!
* @brief 一時的浮遊の継続時間をセットする / Set "tim_levitation", notice observable changes
* @param v 継続時間
* @param do_dec 現在の継続時間より長い値のみ上書きする
bool choose_ele_attack(player_type *creature_ptr);
bool choose_ele_immune(player_type *creature_ptr, TIME_EFFECT turn);
bool set_wraith_form(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
-bool set_superstealth(player_type *creature_ptr, bool set);
void do_poly_wounds(player_type *creature_ptr);
void change_race(player_type *creature_ptr, player_race_type new_race, concptr effect_msg);
bool drop_weapons(player_type *creature_ptr);
#include "locale/vowel-checker.h"
#include "main/sound-definitions-table.h"
#include "main/sound-of-music.h"
+#include "mind/mind-ninja.h"
#include "monster-race/monster-race.h"
#include "monster-race/race-flags-resistance.h"
#include "monster-race/race-flags1.h"
#include "main/sound-of-music.h"
#include "market/arena-info-table.h"
#include "mind/mind-force-trainer.h"
+#include "mind/mind-ninja.h"
#include "monster-race/race-flags1.h"
#include "monster-race/race-flags2.h"
#include "monster-race/race-flags3.h"
#include "game-option/text-display-options.h"
#include "grid/grid.h"
#include "io/write-diary.h"
+#include "mind/mind-ninja.h"
#include "monster-race/monster-race.h"
#include "monster-race/race-flags1.h"
#include "monster-race/race-flags2.h"
#include "monster/smart-learn-types.h"
#include "status/bad-status-setter.h"
#include "player/player-damage.h"
-#include "player/player-effects.h"
#include "player/player-move.h"
#include "player/special-defense-types.h"
#include "util/bit-flags-calculator.h"
#include "grid/feature.h"
#include "grid/grid.h"
#include "io/write-diary.h"
+#include "mind/mind-ninja.h"
#include "monster-race/monster-race.h"
#include "monster-race/race-flags1.h"
#include "monster/monster-describer.h"
#include "object/object-mark-types.h"
#include "perception/object-perception.h"
#include "status/bad-status-setter.h"
-#include "player/player-effects.h"
#include "player/special-defense-types.h"
#include "spell-kind/spells-teleport.h"
#include "spell/process-effect.h"
#include "game-option/map-screen-options.h"
#include "grid/grid.h"
#include "io/targeting.h"
+#include "mind/mind-ninja.h"
#include "monster-race/monster-race.h"
#include "monster-race/race-flags2.h"
#include "monster/monster-describer.h"
#include "monster/monster-status.h"
#include "monster/monster-update.h"
-#include "player/player-effects.h"
#include "player/special-defense-types.h"
#include "spell-kind/spells-launcher.h"
#include "spell/process-effect.h"