<ClCompile Include="..\..\src\effect\effect-feature.c" />\r
<ClCompile Include="..\..\src\effect\effect-item.c" />\r
<ClCompile Include="..\..\src\effect\effect-monster-charm.c" />\r
+ <ClCompile Include="..\..\src\effect\effect-monster-curse.c" />\r
<ClCompile Include="..\..\src\effect\effect-monster-domination.c" />\r
<ClCompile Include="..\..\src\effect\effect-monster-evil.c" />\r
<ClCompile Include="..\..\src\effect\effect-monster-lite-dark.c" />\r
<ClInclude Include="..\..\src\effect\effect-feature.h" />\r
<ClInclude Include="..\..\src\effect\effect-item.h" />\r
<ClInclude Include="..\..\src\effect\effect-monster-charm.h" />\r
+ <ClInclude Include="..\..\src\effect\effect-monster-curse.h" />\r
<ClInclude Include="..\..\src\effect\effect-monster-domination.h" />\r
<ClInclude Include="..\..\src\effect\effect-monster-evil.h" />\r
<ClInclude Include="..\..\src\effect\effect-monster-lite-dark.h" />\r
<ClCompile Include="..\..\src\effect\effect-monster-spirit.c">
<Filter>effect</Filter>
</ClCompile>
+ <ClCompile Include="..\..\src\effect\effect-monster-curse.c">
+ <Filter>effect</Filter>
+ </ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\src\gamevalue.h" />
<ClInclude Include="..\..\src\effect\effect-monster-spirit.h">
<Filter>effect</Filter>
</ClInclude>
+ <ClInclude Include="..\..\src\effect\effect-monster-curse.h">
+ <Filter>effect</Filter>
+ </ClInclude>
</ItemGroup>
<ItemGroup>
<None Include="..\..\src\wall.bmp" />
--- /dev/null
+#include "angband.h"
+#include "effect/effect-monster-util.h"
+#include "effect/effect-monster-curse.h"
+
+gf_switch_result effect_monster_curse_1(effect_monster_type *em_ptr)
+{
+ if (em_ptr->seen) em_ptr->obvious = TRUE;
+ if (!em_ptr->who) msg_format(_("%sを指差して呪いをかけた。", "You point at %s and curse."), em_ptr->m_name);
+ if (randint0(100 + (em_ptr->caster_lev / 2)) < (em_ptr->r_ptr->level + 35))
+ {
+ em_ptr->note = _("には効果がなかった。", " is unaffected.");
+ em_ptr->dam = 0;
+ }
+
+ return GF_SWITCH_CONTINUE;
+}
+
+
+gf_switch_result effect_monster_curse_2(effect_monster_type *em_ptr)
+{
+ if (em_ptr->seen) em_ptr->obvious = TRUE;
+ if (!em_ptr->who) msg_format(_("%sを指差して恐ろしげに呪いをかけた。", "You point at %s and curse horribly."), em_ptr->m_name);
+
+ if (randint0(100 + (em_ptr->caster_lev / 2)) < (em_ptr->r_ptr->level + 35))
+ {
+ em_ptr->note = _("には効果がなかった。", " is unaffected.");
+ em_ptr->dam = 0;
+ }
+
+ return GF_SWITCH_CONTINUE;
+}
+
+
+gf_switch_result effect_monster_curse_3(effect_monster_type *em_ptr)
+{
+ if (em_ptr->seen) em_ptr->obvious = TRUE;
+ if (!em_ptr->who) msg_format(_("%sを指差し、恐ろしげに呪文を唱えた!", "You point at %s, incanting terribly!"), em_ptr->m_name);
+
+ if (randint0(100 + (em_ptr->caster_lev / 2)) < (em_ptr->r_ptr->level + 35))
+ {
+ em_ptr->note = _("には効果がなかった。", " is unaffected.");
+ em_ptr->dam = 0;
+ }
+
+ return GF_SWITCH_CONTINUE;
+}
+
+
+gf_switch_result effect_monster_curse_4(effect_monster_type *em_ptr)
+{
+ if (em_ptr->seen) em_ptr->obvious = TRUE;
+ if (!em_ptr->who)
+ msg_format(_("%sの秘孔を突いて、「お前は既に死んでいる」と叫んだ。",
+ "You point at %s, screaming the word, 'DIE!'."), em_ptr->m_name);
+
+ if ((randint0(100 + (em_ptr->caster_lev / 2)) < (em_ptr->r_ptr->level + 35)) && ((em_ptr->who <= 0) || (em_ptr->m_caster_ptr->r_idx != MON_KENSHIROU)))
+ {
+ em_ptr->note = _("には効果がなかった。", " is unaffected.");
+ em_ptr->dam = 0;
+ }
+
+ return GF_SWITCH_CONTINUE;
+}
--- /dev/null
+#pragma once
+
+gf_switch_result effect_monster_curse_1(effect_monster_type *em_ptr);
+gf_switch_result effect_monster_curse_2(effect_monster_type *em_ptr);
+gf_switch_result effect_monster_curse_3(effect_monster_type *em_ptr);
+gf_switch_result effect_monster_curse_4(effect_monster_type *em_ptr);
#include "effect/effect-monster-lite-dark.h"
#include "effect/effect-monster-evil.h"
#include "effect/effect-monster-spirit.h"
+#include "effect/effect-monster-curse.h"
gf_switch_result effect_monster_hypodynamia(player_type *caster_ptr, effect_monster_type *em_ptr)
{
}
-gf_switch_result effect_monster_curse_1(effect_monster_type *em_ptr)
-{
- if (em_ptr->seen) em_ptr->obvious = TRUE;
- if (!em_ptr->who) msg_format(_("%sを指差して呪いをかけた。", "You point at %s and curse."), em_ptr->m_name);
- if (randint0(100 + (em_ptr->caster_lev / 2)) < (em_ptr->r_ptr->level + 35))
- {
- em_ptr->note = _("には効果がなかった。", " is unaffected.");
- em_ptr->dam = 0;
- }
-
- return GF_SWITCH_CONTINUE;
-}
-
-
-gf_switch_result effect_monster_curse_2(effect_monster_type *em_ptr)
-{
- if (em_ptr->seen) em_ptr->obvious = TRUE;
- if (!em_ptr->who) msg_format(_("%sを指差して恐ろしげに呪いをかけた。", "You point at %s and curse horribly."), em_ptr->m_name);
-
- if (randint0(100 + (em_ptr->caster_lev / 2)) < (em_ptr->r_ptr->level + 35))
- {
- em_ptr->note = _("には効果がなかった。", " is unaffected.");
- em_ptr->dam = 0;
- }
-
- return GF_SWITCH_CONTINUE;
-}
-
-
-gf_switch_result effect_monster_curse_3(effect_monster_type *em_ptr)
-{
- if (em_ptr->seen) em_ptr->obvious = TRUE;
- if (!em_ptr->who) msg_format(_("%sを指差し、恐ろしげに呪文を唱えた!", "You point at %s, incanting terribly!"), em_ptr->m_name);
-
- if (randint0(100 + (em_ptr->caster_lev / 2)) < (em_ptr->r_ptr->level + 35))
- {
- em_ptr->note = _("には効果がなかった。", " is unaffected.");
- em_ptr->dam = 0;
- }
-
- return GF_SWITCH_CONTINUE;
-}
-
-
-gf_switch_result effect_monster_curse_4(effect_monster_type *em_ptr)
-{
- if (em_ptr->seen) em_ptr->obvious = TRUE;
- if (!em_ptr->who)
- msg_format(_("%sの秘孔を突いて、「お前は既に死んでいる」と叫んだ。",
- "You point at %s, screaming the word, 'DIE!'."), em_ptr->m_name);
-
- if ((randint0(100 + (em_ptr->caster_lev / 2)) < (em_ptr->r_ptr->level + 35)) && ((em_ptr->who <= 0) || (em_ptr->m_caster_ptr->r_idx != MON_KENSHIROU)))
- {
- em_ptr->note = _("には効果がなかった。", " is unaffected.");
- em_ptr->dam = 0;
- }
-
- return GF_SWITCH_CONTINUE;
-}
-
-
gf_switch_result effect_monster_hand_doom(effect_monster_type *em_ptr)
{
if (em_ptr->seen) em_ptr->obvious = TRUE;