*/
#include "angband.h"
+#include "mutation.h"
+#include "quest.h"
+#include "avatar.h"
+#include "player-status.h"
/*!
* @brief プレイヤーの継続行動を設定する。
p_ptr->stat_cur[stat] = cur;
p_ptr->stat_max[stat] = max;
- /* Redisplay the stats later */
p_ptr->redraw |= (PR_STATS);
p_ptr->update |= (PU_BONUS);
}
/* Restore if needed */
if (p_ptr->stat_cur[stat] != p_ptr->stat_max[stat])
{
- /* Restore */
p_ptr->stat_cur[stat] = p_ptr->stat_max[stat];
p_ptr->update |= (PU_BONUS);
-
- /* Redisplay the stats later */
p_ptr->redraw |= (PR_STATS);
/* Success */
o_ptr->ident &= ~(IDENT_SENSE);
}
p_ptr->update |= (PU_BONUS);
-
- /* Combine / Reorder the pack (later) */
p_ptr->update |= (PU_COMBINE | PU_REORDER);
p_ptr->window |= (PW_INVEN | PW_EQUIP | PW_PLAYER);
if (value > 100000L)
exp += (value - 100000L) / 4 * level;
}
- if ((((i == INVEN_RARM) || (i == INVEN_LARM)) && (buki_motteruka(i))) || (i == INVEN_BOW)) total_exp += exp / 48;
+ if ((((i == INVEN_RARM) || (i == INVEN_LARM)) && (has_melee_weapon(i))) || (i == INVEN_BOW)) total_exp += exp / 48;
else total_exp += exp / 16;
if (i == INVEN_BODY) total_exp += exp / 32;
}
char choice;
- if (!buki_motteruka(INVEN_RARM) && !buki_motteruka(INVEN_LARM))
+ if (!has_melee_weapon(INVEN_RARM) && !has_melee_weapon(INVEN_LARM))
{
msg_format(_("武器を持たないと魔法剣は使えない。", "You cannot use temporary branding with no weapon."));
return FALSE;