}
-bool perilous_secrets(player_type *creature_ptr)
+bool perilous_secrets(player_type *user_ptr)
{
if (!ident_spell(FALSE)) return FALSE;
if (mp_ptr->spell_book)
{
/* Sufficient mana */
- if (20 <= creature_ptr->csp)
+ if (20 <= user_ptr->csp)
{
/* Use some mana */
- creature_ptr->csp -= 20;
+ user_ptr->csp -= 20;
}
/* Over-exert the player */
else
{
- int oops = 20 - creature_ptr->csp;
+ int oops = 20 - user_ptr->csp;
/* No mana left */
- creature_ptr->csp = 0;
- creature_ptr->csp_frac = 0;
+ user_ptr->csp = 0;
+ user_ptr->csp_frac = 0;
msg_print(_("石を制御できない!", "You are too weak to control the stone!"));
/* Hack -- Bypass free action */
- (void)set_paralyzed(p_ptr, creature_ptr->paralyzed + randint1(5 * oops + 1));
+ (void)set_paralyzed(user_ptr, user_ptr->paralyzed + randint1(5 * oops + 1));
/* Confusing. */
- (void)set_confused(p_ptr, creature_ptr->confused + randint1(5 * oops + 1));
+ (void)set_confused(user_ptr, user_ptr->confused + randint1(5 * oops + 1));
}
- creature_ptr->redraw |= (PR_MANA);
+ user_ptr->redraw |= (PR_MANA);
}
- take_hit(p_ptr, DAMAGE_LOSELIFE, damroll(1, 12), _("危険な秘密", "perilous secrets"), -1);
+ take_hit(user_ptr, DAMAGE_LOSELIFE, damroll(1, 12), _("危険な秘密", "perilous secrets"), -1);
/* Confusing. */
- if (one_in_(5)) (void)set_confused(p_ptr, creature_ptr->confused + randint1(10));
+ if (one_in_(5)) (void)set_confused(user_ptr, user_ptr->confused + randint1(10));
/* Exercise a little care... */
- if (one_in_(20)) take_hit(p_ptr, DAMAGE_LOSELIFE, damroll(4, 10), _("危険な秘密", "perilous secrets"), -1);
+ if (one_in_(20)) take_hit(user_ptr, DAMAGE_LOSELIFE, damroll(4, 10), _("危険な秘密", "perilous secrets"), -1);
return TRUE;
}
extern bool curse_weapon(bool force, int slot);
extern bool rustproof(void);
extern bool brand_bolts(void);
-extern bool perilous_secrets(player_type *creature_ptr);
+extern bool perilous_secrets(player_type *user_ptr);
extern void get_bloody_moon_flags(object_type *o_ptr);
extern void phlogiston(void);
extern bool bless_weapon(void);