変愚蛮怒のメインリポジトリです
Revision | d4e669dc0fae3f50ca09f62efbb48fb8108fe058 (tree) |
---|---|
Time | 2003-05-29 00:16:04 |
Author | nothere <nothere@0568...> |
Commiter | nothere |
モンスターの睡眠処理をprocess_world()に移した影響でモンスターが起きに
くくなったので, プレイヤーのスピードに応じてモンスターの睡眠カウンタ
を減らす量を調整するように変更.
@@ -1230,11 +1230,22 @@ static void process_monsters_counters(void) | ||
1230 | 1230 | /* Hack -- amount of "waking" */ |
1231 | 1231 | int d = 1; |
1232 | 1232 | |
1233 | - /* Wake up faster near the player */ | |
1234 | - if (m_ptr->cdis < 50) d = (100 / m_ptr->cdis); | |
1235 | - | |
1236 | 1233 | /* 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 | + } | |
1238 | 1249 | |
1239 | 1250 | /* Still asleep */ |
1240 | 1251 | if (m_ptr->csleep > d) |