#include "object/object-kind-hook.h"
#include "object/object-kind.h"
#include "perception/object-perception.h"
+#include "player-status/player-energy.h"
#include "player-info/avatar.h"
#include "player/attack-defense-types.h"
#include "player/digestion-processor.h"
#include "player/player-damage.h"
#include "player/player-race-types.h"
#include "player/player-status-flags.h"
-#include "player/player-status.h"
#include "player/special-defense-types.h"
#include "spell-realm/spells-hex.h"
#include "spell-realm/spells-song.h"
/*!
* @brief 食料を食べるコマンドのサブルーチン
* @param item 食べるオブジェクトの所持品ID
- * @return なし
*/
void exe_eat_food(player_type *creature_ptr, INVENTORY_IDX item)
{
sound(SOUND_EAT);
- take_turn(creature_ptr, 100);
+ PlayerEnergy(creature_ptr).set_player_turn_energy(100);
/* Object level */
int lev = k_info[o_ptr->k_idx].level;
/*!
* @brief 食料を食べるコマンドのメインルーチン /
* Eat some food (from the pack or floor)
- * @return なし
*/
void do_cmd_eat_food(player_type *creature_ptr)
{