• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

変愚蛮怒のメインリポジトリです


Commit MetaInfo

Revisiond4e669dc0fae3f50ca09f62efbb48fb8108fe058 (tree)
Time2003-05-29 00:16:04
Authornothere <nothere@0568...>
Commiternothere

Log Message

モンスターの睡眠処理をprocess_world()に移した影響でモンスターが起きに
くくなったので, プレイヤーのスピードに応じてモンスターの睡眠カウンタ
を減らす量を調整するように変更.

Change Summary

Incremental Difference

--- a/src/dungeon.c
+++ b/src/dungeon.c
@@ -1230,11 +1230,22 @@ static void process_monsters_counters(void)
12301230 /* Hack -- amount of "waking" */
12311231 int d = 1;
12321232
1233- /* Wake up faster near the player */
1234- if (m_ptr->cdis < 50) d = (100 / m_ptr->cdis);
1235-
12361233 /* Hack -- handle aggravation */
1237- if (p_ptr->cursed & TRC_AGGRAVATE) d = m_ptr->csleep;
1234+ if (p_ptr->cursed & TRC_AGGRAVATE)
1235+ {
1236+ d = m_ptr->csleep;
1237+ }
1238+ else
1239+ {
1240+ /* Wake up faster near the player */
1241+ if (m_ptr->cdis < 50) d = (100 / m_ptr->cdis);
1242+
1243+ /* Hack -- amount of "waking" is affected by speed of player */
1244+ d *= ((p_ptr->pspeed > 199) ? 49 :
1245+ ((p_ptr->pspeed < 0) ? 1 : extract_energy[p_ptr->pspeed]));
1246+ d /= 10;
1247+ if (d < 0) d = 1;
1248+ }
12381249
12391250 /* Still asleep */
12401251 if (m_ptr->csleep > d)
Show on old repository browser