From: Hourier Date: Sun, 13 Sep 2020 11:34:55 +0000 (+0900) Subject: [Implement] #40735 WEIRD_MINDフラグ持ちのモンスターを、フロアのモンスター番号ではなく確率でテレパシーに引っかけるようにした (プレーヤーの行... X-Git-Tag: vmacos3.0.0-alpha52~517^2~199^2~9 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=33a64f0aef1d7c347c4b25bde591a66ef056f899;p=hengbandforosx%2Fhengbandosx.git [Implement] #40735 WEIRD_MINDフラグ持ちのモンスターを、フロアのモンスター番号ではなく確率でテレパシーに引っかけるようにした (プレーヤーの行動1回につき1/10) / Changed the possibility of telepathically detecting monsters with the WEIRD_MIND flag to use the probability instead of the monster number on the floor (1/10 per player action) --- diff --git a/src/monster/monster-update.c b/src/monster/monster-update.c index 4a7ac81fb..e5a931d46 100644 --- a/src/monster/monster-update.c +++ b/src/monster/monster-update.c @@ -230,7 +230,8 @@ void update_monster(player_type *subject_ptr, MONSTER_IDX m_idx, bool full) if (is_original_ap(um_ptr->m_ptr) && !subject_ptr->image) r_ptr->r_flags2 |= RF2_EMPTY_MIND; } else if (r_ptr->flags2 & RF2_WEIRD_MIND) { - if ((m_idx % 10) == 5) { + const int weird_telepathy_possibility = 10; + if (one_in_(weird_telepathy_possibility)) { um_ptr->flag = TRUE; if (is_original_ap(um_ptr->m_ptr) && !subject_ptr->image) { r_ptr->r_flags2 |= RF2_WEIRD_MIND;