msg_print(NULL);
return TRUE;
}
- else if (p_ptr->anti_magic)
+ else if (creature_ptr->anti_magic)
{
msg_print(_("反魔法バリアが魔法を邪魔した!", "An anti-magic shell disrupts your magic!"));
return TRUE;
}
- else if (p_ptr->shero)
+ else if (creature_ptr->shero)
{
msg_format(_("狂戦士化していて頭が回らない!", "You cannot think directly!"));
return TRUE;
bool cmd_limit_confused(player_type *creature_ptr)
{
- if (p_ptr->confused)
+ if (creature_ptr->confused)
{
msg_print(_("混乱していてできない!", "You are too confused!"));
return TRUE;
bool cmd_limit_arena(player_type *creature_ptr)
{
- if (p_ptr->inside_arena)
+ if (creature_ptr->inside_arena)
{
msg_print(_("アリーナが魔法を吸収した!", "The arena absorbs all attempted magic!"));
msg_print(NULL);
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)
{
- p_ptr->energy_use = 0;
+ creature_ptr->energy_use = 0;
}
msg_print(NULL);
/* Hack */
- p_ptr->energy_need -= 1000 + (100 + p_ptr->csp - 50)*TURNS_PER_TICK / 10;
- p_ptr->redraw |= (PR_MAP);
- p_ptr->update |= (PU_MONSTERS);
- p_ptr->window |= (PW_OVERHEAD | PW_DUNGEON);
+ creature_ptr->energy_need -= 1000 + (100 + p_ptr->csp - 50)*TURNS_PER_TICK / 10;
+ creature_ptr->redraw |= (PR_MAP);
+ creature_ptr->update |= (PU_MONSTERS);
+ creature_ptr->window |= (PW_OVERHEAD | PW_DUNGEON);
handle_stuff();
return TRUE;
}
bool unleash_mana_storm(player_type *creature_ptr, bool powerful)
{
msg_print(_("強力な魔力が敵を引き裂いた!", "Mighty magics rend your enemies!"));
- project(0, (powerful ? 7 : 5), p_ptr->y, p_ptr->x,
+ project(0, (powerful ? 7 : 5), creature_ptr->y, creature_ptr->x,
(randint1(200) + (powerful ? 500 : 300)) * 2, GF_MANA, PROJECT_KILL | PROJECT_ITEM | PROJECT_GRID, -1);
- if ((p_ptr->pclass != CLASS_MAGE) && (p_ptr->pclass != CLASS_HIGH_MAGE) && (p_ptr->pclass != CLASS_SORCERER) && (p_ptr->pclass != CLASS_MAGIC_EATER) && (p_ptr->pclass != CLASS_BLUE_MAGE))
+ if ((creature_ptr->pclass != CLASS_MAGE) && (creature_ptr->pclass != CLASS_HIGH_MAGE) && (creature_ptr->pclass != CLASS_SORCERER) && (creature_ptr->pclass != CLASS_MAGIC_EATER) && (creature_ptr->pclass != CLASS_BLUE_MAGE))
{
(void)take_hit(DAMAGE_NOESCAPE, 50, _("コントロールし難い強力な魔力の解放", "unleashing magics too mighty to control"), -1);
}
bool confusing_light(player_type *creature_ptr)
{
msg_print(_("辺りを睨んだ...", "You glare nearby monsters..."));
- slow_monsters(p_ptr->lev);
- stun_monsters(p_ptr->lev * 4);
- confuse_monsters(p_ptr->lev * 4);
- turn_monsters(p_ptr->lev * 4);
- stasis_monsters(p_ptr->lev * 4);
+ slow_monsters(creature_ptr->lev);
+ stun_monsters(creature_ptr->lev * 4);
+ confuse_monsters(creature_ptr->lev * 4);
+ turn_monsters(creature_ptr->lev * 4);
+ stasis_monsters(creature_ptr->lev * 4);
return TRUE;
}