OSDN Git Service
(root)
/
hengbandforosx
/
hengbandosx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5df2d8
)
[Implement] #40735 WEIRD_MINDフラグ持ちのモンスターを、フロアのモンスター番号ではなく確率でテレパシーに引っかけるようにした (プレーヤーの行...
author
Hourier
<hourier@users.sourceforge.jp>
Sun, 13 Sep 2020 11:34:55 +0000
(20:34 +0900)
committer
Hourier
<hourier@users.sourceforge.jp>
Sun, 13 Sep 2020 11:35:57 +0000
(20:35 +0900)
src/monster/monster-update.c
patch
|
blob
|
history
diff --git
a/src/monster/monster-update.c
b/src/monster/monster-update.c
index
4a7ac81
..
e5a931d
100644
(file)
--- 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;