OSDN Git Service

[Refactor] #37353 混沌の戦士のレイシャル「幻惑の光」を confusing_light() に分離。 / Separate Chaos warrior...
authorDeskull <deskull@users.sourceforge.jp>
Wed, 23 Jan 2019 15:06:11 +0000 (00:06 +0900)
committerDeskull <deskull@users.sourceforge.jp>
Wed, 23 Jan 2019 15:06:11 +0000 (00:06 +0900)
src/externs.h
src/racial.c
src/spells2.c

index f61bf44..7678d5c 100644 (file)
@@ -999,6 +999,7 @@ extern bool comvert_mp_to_hp(player_type *creature_ptr);
 extern bool demonic_breath(player_type *creature_ptr);
 extern bool mirror_concentration(player_type *creature_ptr);
 extern bool sword_dancing(player_type *creature_ptr);
+extern bool confusing_light(player_type *creature_ptr);
 
 /* spells3.c */
 extern bool teleport_away(MONSTER_IDX m_idx, POSITION dis, BIT_FLAGS mode);
index 2f4e79e..e0f3e5f 100644 (file)
@@ -478,12 +478,7 @@ static bool cmd_racial_power_aux(s32b command)
                }
                case CLASS_CHAOS_WARRIOR:
                {
-                       msg_print(_("辺りを睨んだ...", "You glare nearby monsters..."));
-                       slow_monsters(p_ptr->lev);
-                       stun_monsters(p_ptr->lev * 4);
-                       confuse_monsters(p_ptr->lev * 4);
-                       turn_monsters(p_ptr->lev * 4);
-                       stasis_monsters(p_ptr->lev * 4);
+                       return confusing_light(p_ptr);
                        break;
                }
                case CLASS_MONK:
index be7a9c0..a30272f 100644 (file)
@@ -5323,3 +5323,14 @@ bool sword_dancing(player_type *creature_ptr)
        }
        return TRUE;
 }
+
+bool confusing_light(player_type *creature_ptr)
+{
+       msg_print(_("辺りを睨んだ...", "You glare nearby monsters..."));
+       slow_monsters(p_ptr->lev);
+       stun_monsters(p_ptr->lev * 4);
+       confuse_monsters(p_ptr->lev * 4);
+       turn_monsters(p_ptr->lev * 4);
+       stasis_monsters(p_ptr->lev * 4);
+       return TRUE;
+}