break;
}
}
-
- /* Recalculate bonuses */
p_ptr->update |= (PU_BONUS);
-
- /* Redraw the state */
p_ptr->redraw |= (PR_STATE);
}
p_ptr->dustrobe = 0;
p_ptr->action = ACTION_NONE;
-
p_ptr->oppose_acid = 0; /* Timed -- oppose acid */
p_ptr->oppose_elec = 0; /* Timed -- oppose lightning */
p_ptr->oppose_fire = 0; /* Timed -- oppose heat */
if (music_singing_any() || hex_spelling_any())
{
- cptr str = (music_singing_any()) ? _("歌", "singing") : _("呪文", "spelling");
+ concptr str = (music_singing_any()) ? _("歌", "singing") : _("呪文", "spelling");
INTERUPTING_SONG_EFFECT(p_ptr) = SINGING_SONG_EFFECT(p_ptr);
SINGING_SONG_EFFECT(p_ptr) = MUSIC_NONE;
msg_format(_("%sが途切れた。", "Your %s is interrupted."), str);
- p_ptr->action = ACTION_NONE;
-
- /* Recalculate bonuses */
- p_ptr->update |= (PU_BONUS | PU_HP);
+ p_ptr->action = ACTION_NONE;
+ p_ptr->update |= (PU_BONUS | PU_HP | PU_MONSTERS);
p_ptr->redraw |= (PR_MAP | PR_STATUS | PR_STATE);
- p_ptr->update |= (PU_MONSTERS);
-
p_ptr->window |= (PW_OVERHEAD | PW_DUNGEON);
-
p_ptr->energy_need += ENERGY_NEED();
}
}
/* Redraw title */
p_ptr->redraw |= (PR_BASIC | PR_STATUS);
-
- /* Recalculate bonuses */
p_ptr->update |= (PU_BONUS | PU_HP);
handle_stuff();
if (!notice) return (FALSE);
if (disturb_state) disturb(FALSE, FALSE);
-
- /* Redraw the state */
p_ptr->redraw |= (PR_STATE);
handle_stuff();
return (TRUE);
v = (v > 10000) ? 10000 : (v < 0) ? 0 : v;
if (p_ptr->is_dead) return FALSE;
+ if (p_ptr->pseikaku == SEIKAKU_CHARGEMAN) v = 0;
/* Open */
if (!notice) return (FALSE);
if (disturb_state) disturb(FALSE, FALSE);
-
- /* Recalculate bonuses */
p_ptr->update |= (PU_BONUS);
handle_stuff();
return (TRUE);
if (!notice) return (FALSE);
if (disturb_state) disturb(FALSE, FALSE);
-
- /* Recalculate bonuses */
p_ptr->update |= (PU_BONUS);
handle_stuff();
return (TRUE);
if (!notice) return (FALSE);
if (disturb_state) disturb(FALSE, FALSE);
-
- /* Recalculate bonuses */
p_ptr->update |= (PU_BONUS);
handle_stuff();
return (TRUE);
if (!notice) return (FALSE);
if (disturb_state) disturb(FALSE, FALSE);
-
- /* Recalculate bonuses */
p_ptr->update |= (PU_BONUS);
handle_stuff();
return (TRUE);
if (!notice) return (FALSE);
if (disturb_state) disturb(FALSE, FALSE);
-
- /* Recalculate bonuses */
p_ptr->update |= (PU_BONUS);
handle_stuff();
return (TRUE);
if (!notice) return (FALSE);
if (disturb_state) disturb(FALSE, FALSE);
-
- /* Recalculate bonuses */
p_ptr->update |= (PU_BONUS);
handle_stuff();
return (TRUE);
if (!notice) return (FALSE);
if (disturb_state) disturb(FALSE, FALSE);
-
- /* Recalculate bonuses */
p_ptr->update |= (PU_BONUS);
handle_stuff();
return (TRUE);
if (!notice) return (FALSE);
if (disturb_state) disturb(FALSE, FALSE);
-
- /* Recalculate bonuses */
p_ptr->update |= (PU_BONUS);
/* Recalculate hitpoints */
if (!notice) return (FALSE);
if (disturb_state) disturb(FALSE, FALSE);
-
- /* Recalculate bonuses */
p_ptr->update |= (PU_BONUS);
/* Recalculate hitpoints */
if (!notice) return (FALSE);
if (disturb_state) disturb(FALSE, FALSE);
-
- /* Recalculate bonuses */
p_ptr->update |= (PU_BONUS);
handle_stuff();
return (TRUE);
if (!notice) return (FALSE);
if (disturb_state) disturb(FALSE, FALSE);
-
- /* Recalculate bonuses */
p_ptr->update |= (PU_BONUS);
handle_stuff();
return (TRUE);
if (!notice) return (FALSE);
if (disturb_state) disturb(FALSE, FALSE);
-
- /* Recalculate bonuses */
p_ptr->update |= (PU_BONUS);
p_ptr->update |= (PU_MONSTERS);
handle_stuff();
if (!notice) return (FALSE);
if (disturb_state) disturb(FALSE, FALSE);
-
- /* Recalculate bonuses */
p_ptr->update |= (PU_BONUS);
/* Update the monsters */
if (!notice) return (FALSE);
if (disturb_state) disturb(FALSE, FALSE);
-
- /* Recalculate bonuses */
p_ptr->update |= (PU_BONUS);
/* Update the monsters */
if (!notice) return (FALSE);
if (disturb_state) disturb(FALSE, FALSE);
-
- /* Recalculate bonuses */
p_ptr->update |= (PU_BONUS);
handle_stuff();
return (TRUE);
if (!notice) return (FALSE);
if (disturb_state) disturb(FALSE, FALSE);
-
- /* Recalculate bonuses */
p_ptr->update |= (PU_BONUS);
handle_stuff();
return (TRUE);
if (!notice) return (FALSE);
if (disturb_state) disturb(FALSE, FALSE);
-
- /* Recalculate bonuses */
p_ptr->update |= (PU_BONUS);
handle_stuff();
return (TRUE);
if (!notice) return (FALSE);
if (disturb_state) disturb(FALSE, FALSE);
-
- /* Recalculate bonuses */
p_ptr->update |= (PU_BONUS);
handle_stuff();
return (TRUE);
if (!notice) return (FALSE);
if (disturb_state) disturb(FALSE, FALSE);
-
- /* Recalculate bonuses */
p_ptr->update |= (PU_BONUS);
handle_stuff();
return (TRUE);
if (!notice) return (FALSE);
if (disturb_state) disturb(FALSE, FALSE);
-
- /* Recalculate bonuses */
p_ptr->update |= (PU_BONUS);
handle_stuff();
return (TRUE);
if (!notice) return (FALSE);
if (disturb_state) disturb(FALSE, FALSE);
-
- /* Recalculate bonuses */
p_ptr->update |= (PU_BONUS);
handle_stuff();
return (TRUE);
if (!notice) return (FALSE);
if (disturb_state) disturb(FALSE, FALSE);
-
- /* Recalculate bonuses */
p_ptr->update |= (PU_BONUS);
handle_stuff();
return (TRUE);
if (!notice) return (FALSE);
if (disturb_state) disturb(FALSE, FALSE);
-
- /* Recalculate bonuses */
p_ptr->update |= (PU_BONUS);
handle_stuff();
return (TRUE);
if (!notice) return (FALSE);
if (disturb_state) disturb(FALSE, FALSE);
-
- /* Recalculate bonuses */
p_ptr->update |= (PU_BONUS);
handle_stuff();
return (TRUE);
if (!notice) return (FALSE);
if (disturb_state) disturb(FALSE, FALSE);
-
- /* Recalculate bonuses */
p_ptr->update |= (PU_BONUS);
handle_stuff();
return (TRUE);
if (!notice) return (FALSE);
if (disturb_state) disturb(FALSE, FALSE);
-
- /* Recalculate bonuses */
p_ptr->update |= (PU_BONUS);
/* Recalculate hitpoints */
if (!notice) return (FALSE);
if (disturb_state) disturb(FALSE, FALSE);
-
- /* Recalculate bonuses */
p_ptr->update |= (PU_BONUS);
/* Redraw the "stun" */
if (!notice) return (FALSE);
if (disturb_state) disturb(FALSE, FALSE);
-
- /* Recalculate bonuses */
p_ptr->update |= (PU_BONUS);
/* Redraw the "cut" */
if (!notice) return (FALSE);
if (disturb_state) disturb(FALSE, FALSE);
-
- /* Recalculate bonuses */
p_ptr->update |= (PU_BONUS);
/* Redraw hunger */
{
p_ptr->stat_max[stat] = value;
}
-
- /* Recalculate bonuses */
p_ptr->update |= (PU_BONUS);
/* Success */
/* Redisplay the stats later */
p_ptr->redraw |= (PR_STATS);
-
- /* Recalculate bonuses */
p_ptr->update |= (PU_BONUS);
}
{
/* Restore */
p_ptr->stat_cur[stat] = p_ptr->stat_max[stat];
-
- /* Recalculate bonuses */
p_ptr->update |= (PU_BONUS);
/* Redisplay the stats later */
/*
* Array of stat "descriptions"
*/
-static cptr desc_stat_pos[] =
+static concptr desc_stat_pos[] =
{
_("強く", "strong"),
_("知的に", "smart"),
/*
* Array of stat "descriptions"
*/
-static cptr desc_stat_neg[] =
+static concptr desc_stat_neg[] =
{
_("弱く", "weak"),
_("無知に", "stupid"),
/* Hack -- Clear the "felt" flag */
o_ptr->ident &= ~(IDENT_SENSE);
}
-
- /* Recalculate bonuses */
p_ptr->update |= (PU_BONUS);
/* Combine / Reorder the pack (later) */
- p_ptr->notice |= (PN_COMBINE | PN_REORDER);
+ p_ptr->update |= (PU_COMBINE | PU_REORDER);
p_ptr->window |= (PW_INVEN | PW_EQUIP | PW_PLAYER);
/*
* Change player race
*/
-void change_race(CHARACTER_IDX new_race, cptr effect_msg)
+void change_race(CHARACTER_IDX new_race, concptr effect_msg)
{
- cptr title = race_info[new_race].title;
+ concptr title = race_info[new_race].title;
int old_race = p_ptr->prace;
#ifdef JP
/* Harmful deformity */
power -= 15;
- while (tmp < 6)
+ while (tmp < A_MAX)
{
if (one_in_(2))
{
power -= 20;
msg_format(_("%sの構成が変化した!", "Your internal organs are rearranged!"), p_ptr->prace == RACE_ANDROID ? "機械" : "内臓");
- while (tmp < 6)
+ while (tmp < A_MAX)
{
(void)dec_stat(tmp, randint1(6) + 6, one_in_(3));
tmp++;
* setting the player to "dead".
*/
-int take_hit(int damage_type, HIT_POINT damage, cptr hit_from, int monspell)
+int take_hit(int damage_type, HIT_POINT damage, concptr hit_from, int monspell)
{
int old_chp = p_ptr->chp;
if (p_ptr->inside_arena)
{
- cptr m_name = r_name+r_info[arena_info[p_ptr->arena_number].r_idx].name;
+ concptr m_name = r_name+r_info[arena_info[p_ptr->arena_number].r_idx].name;
msg_format(_("あなたは%sの前に敗れ去った。", "You are beaten by %s."), m_name);
msg_print(NULL);
if (record_arena) do_cmd_write_nikki(NIKKI_ARENA, -1 - p_ptr->arena_number, m_name);
int h = Term->hgt;
int msg_pos_x[9] = { 5, 7, 9, 12, 14, 17, 19, 21, 23};
int msg_pos_y[9] = { 3, 4, 5, 4, 5, 4, 5, 6, 4};
- cptr str;
+ concptr str;
char* str2;
Term_clear();
if (!notice) return (FALSE);
if (disturb_state) disturb(FALSE, FALSE);
-
- /* Recalculate bonuses */
p_ptr->update |= (PU_BONUS);
handle_stuff();
return (TRUE);
if (!notice) return (FALSE);
if (disturb_state) disturb(FALSE, FALSE);
-
- /* Recalculate bonuses */
p_ptr->update |= (PU_BONUS);
handle_stuff();
return (TRUE);
if (!notice) return (FALSE);
if (disturb_state) disturb(FALSE, FALSE);
-
- /* Recalculate bonuses */
p_ptr->update |= (PU_BONUS);
handle_stuff();
return (TRUE);