#include "object-curse.h"
#include "monsterrace-hook.h"
#include "objectkind-hook.h"
-#include "spells-summon.h"
#include "mutation.h"
#include "artifact.h"
#include "player-status.h"
+#include "spells-summon.h"
+#include "spells-object.h"
+#include "spells-status.h"
+
#ifdef JP
/*!
* @brief カオスパトロン名テーブル
case REW_CURSE_WP:
- if (!buki_motteruka(INVEN_RARM) && !buki_motteruka(INVEN_LARM)) break;
+ if (!has_melee_weapon(INVEN_RARM) && !has_melee_weapon(INVEN_LARM)) break;
msg_format(_("%sの声が響き渡った:", "The voice of %s booms out:"), chaos_patrons[p_ptr->chaos_patron]);
msg_print(_("「汝、武器に頼ることなかれ。」", "'Thou reliest too much on thy weapon.'"));
dummy = INVEN_RARM;
- if (buki_motteruka(INVEN_LARM))
+ if (has_melee_weapon(INVEN_LARM))
{
dummy = INVEN_LARM;
- if (buki_motteruka(INVEN_RARM) && one_in_(2)) dummy = INVEN_RARM;
+ if (has_melee_weapon(INVEN_RARM) && one_in_(2)) dummy = INVEN_RARM;
}
object_desc(o_name, &inventory[dummy], OD_NAME_ONLY);
(void)curse_weapon(FALSE, dummy);
case 3:
if (one_in_(2))
{
- if (!buki_motteruka(INVEN_RARM) && !buki_motteruka(INVEN_LARM)) break;
+ if (!has_melee_weapon(INVEN_RARM) && !has_melee_weapon(INVEN_LARM)) break;
dummy = INVEN_RARM;
- if (buki_motteruka(INVEN_LARM))
+ if (has_melee_weapon(INVEN_LARM))
{
dummy = INVEN_LARM;
- if (buki_motteruka(INVEN_RARM) && one_in_(2)) dummy = INVEN_RARM;
+ if (has_melee_weapon(INVEN_RARM) && one_in_(2)) dummy = INVEN_RARM;
}
object_desc(o_name, &inventory[dummy], OD_NAME_ONLY);
(void)curse_weapon(FALSE, dummy);
{
dummy = 0;
- if (buki_motteruka(INVEN_RARM))
+ if (has_melee_weapon(INVEN_RARM))
{
dummy = INVEN_RARM;
- if (buki_motteruka(INVEN_LARM) && one_in_(2)) dummy = INVEN_LARM;
+ if (has_melee_weapon(INVEN_LARM) && one_in_(2)) dummy = INVEN_LARM;
}
- else if (buki_motteruka(INVEN_LARM)) dummy = INVEN_LARM;
+ else if (has_melee_weapon(INVEN_LARM)) dummy = INVEN_LARM;
if (dummy) (void)curse_weapon(FALSE, dummy);
}