• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revisiondc96269c56d0bbcf929916567a6bd6d88c700118 (tree)
Time2003-07-07 02:26:24
Authornothere <nothere@0568...>
Commiternothere

Log Message

モンスター対モンスターの魔法使用時に, 実装されていない魔法が選択され
たことで魔法使用に失敗しないように, 未実装魔法 (魔力消去, 時間停止,
記憶消去, シンボル'B'以外の特別な行動) のフラグを最初から落とすように
修正. また, コメントの修正を含む.

Change Summary

Incremental Difference

--- a/src/mspells1.c
+++ b/src/mspells1.c
@@ -1701,7 +1701,7 @@ msg_format("%^s
17011701 break;
17021702 }
17031703
1704- /* RF4_XXX4X4 */
1704+ /* RF4_ROCKET */
17051705 case 96+3:
17061706 {
17071707 disturb(1, 0);
--- a/src/mspells2.c
+++ b/src/mspells2.c
@@ -317,6 +317,16 @@ bool monst_spell_monst(int m_idx)
317317 /* Extract the monster level */
318318 rlev = ((r_ptr->level >= 1) ? r_ptr->level : 1);
319319
320+ /* Remove unimplemented spells */
321+ f4 &= ~(RF4_DISPEL);
322+ f6 &= ~(RF6_WORLD | RF6_FORGET);
323+
324+ /* Remove unimplemented special moves */
325+ if (f6 & RF6_SPECIAL)
326+ {
327+ if (r_ptr->d_char != 'B') f6 &= ~(RF6_SPECIAL);
328+ }
329+
320330 if (in_no_magic_dungeon && !(r_ptr->flags2 & RF2_STUPID))
321331 {
322332 f4 &= (RF4_NOMAGIC_MASK);
@@ -606,7 +616,7 @@ bool monst_spell_monst(int m_idx)
606616 case 96+2:
607617 return FALSE;
608618
609- /* RF4_XXX4X4 */
619+ /* RF4_ROCKET */
610620 case 96+3:
611621 if (known)
612622 {
@@ -1567,7 +1577,7 @@ bool monst_spell_monst(int m_idx)
15671577
15681578 break;
15691579
1570- /* RF4_RF4_BR_NUKE */
1580+ /* RF4_BR_NUKE */
15711581 case 96+29:
15721582 if (known)
15731583 {
Show on old repository browser