#include "artifact.h"
#include "avatar.h"
+#include "spells-status.h"
/*
* Return alignment title
/* max radius is 14 (was 5) without rewriting other code -- */
/* see cave.c:update_lite() and defines.h:LITE_MAX */
- if (d_info[dungeon_type].flags1 & DF1_DARKNESS && p_ptr->cur_lite > 1)
+ if (d_info[p_ptr->dungeon_idx].flags1 & DF1_DARKNESS && p_ptr->cur_lite > 1)
p_ptr->cur_lite = 1;
/*
void take_turn(player_type *creature_ptr, PERCENTAGE need_cost)
{
- p_ptr->energy_use = (ENERGY)need_cost;
+ creature_ptr->energy_use = (ENERGY)need_cost;
+}
+
+void free_turn(player_type *creature_ptr)
+{
+ creature_ptr->energy_use = 0;
}