*/
#include "angband.h"
+#include "floor.h"
#include "selfinfo.h"
+#include "patron.h"
+#include "mutation.h"
+#include "quest.h"
+#include "artifact.h"
+#include "player-status.h"
+#include "spells-object.h"
+#include "spells-summon.h"
/*!
* @brief プレイヤーのヒットダイスを振り直す / Roll the hitdie -- aux of do_cmd_rerate()
void do_cmd_rerate_aux(void)
{
/* Minimum hitpoints at highest level */
- int min_value = p_ptr->hitdie + ((PY_MAX_LEVEL + 2) * (p_ptr->hitdie + 1)) * 3 / 8;
+ HIT_POINT min_value = p_ptr->hitdie + ((PY_MAX_LEVEL + 2) * (p_ptr->hitdie + 1)) * 3 / 8;
/* Maximum hitpoints at highest level */
- int max_value = p_ptr->hitdie + ((PY_MAX_LEVEL + 2) * (p_ptr->hitdie + 1)) * 5 / 8;
+ HIT_POINT max_value = p_ptr->hitdie + ((PY_MAX_LEVEL + 2) * (p_ptr->hitdie + 1)) * 5 / 8;
int i;
do_cmd_rerate_aux();
percent = (int)(((long)p_ptr->player_hp[PY_MAX_LEVEL - 1] * 200L) /
- (2 * p_ptr->hitdie +
- ((PY_MAX_LEVEL - 1+3) * (p_ptr->hitdie + 1))));
+ (2 * p_ptr->hitdie + ((PY_MAX_LEVEL - 1+3) * (p_ptr->hitdie + 1))));
/* Update and redraw hitpoints */
p_ptr->update |= (PU_HP);
p_ptr->redraw |= (PR_HP);
-
p_ptr->window |= (PW_PLAYER);
handle_stuff();
int tmp_int = 0;
char ppp[80], tmp_val[40];
- /* Prompt */
sprintf(ppp, "Dungeon Turn (0-%ld): ", (long)dungeon_turn_limit);
-
- /* Default */
sprintf(tmp_val, "%ld", (long)dungeon_turn);
-
- /* Query */
if (!get_string(ppp, tmp_val, 10)) return (FALSE);
-
- /* Extract */
tmp_int = atoi(tmp_val);
/* Verify */
else if (tmp_int < 3) tmp_int = 3;
/* Save it */
- p_ptr->stat_cur[i] = p_ptr->stat_max[i] = (s16b)tmp_int;
+ p_ptr->stat_cur[i] = p_ptr->stat_max[i] = (BASE_STATUS)tmp_int;
}
/* Apply changes */
object_copy(o_ptr, q_ptr);
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_SPELL | PW_PLAYER);
object_copy(o_ptr, q_ptr);
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_SPELL | PW_PLAYER);
if (record_stair) do_cmd_write_nikki(NIKKI_WIZ_TELE,0,NULL);
p_ptr->inside_quest = 0;
- p_ptr->energy_use = 0;
+ free_turn(p_ptr);
/* Prevent energy_need from being too lower than 0 */
p_ptr->energy_need = 0;