else
{
msg_print(_("装備を外せなかった。", "You couldn't remove the equipment."));
- p_ptr->energy_use = 50;
+ take_turn(p_ptr, 50);
return;
}
}
- p_ptr->energy_use = 50;
+ take_turn(p_ptr, 50);
/* Take off the item */
(void)inven_takeoff(item, 255);
if (amt <= 0) return;
}
- p_ptr->energy_use = 50;
+ take_turn(p_ptr, 50);
/* Drop (some of) the item */
inven_drop(item, amt);
o_ptr = choose_object(&item, q, s, (USE_INVEN | USE_FLOOR));
if (!o_ptr) return;
- p_ptr->energy_use = 50;
+ take_turn(p_ptr, 50);
/* Access the lantern */
j_ptr = &inventory[INVEN_LITE];
o_ptr = choose_object(&item, q, s, (USE_INVEN | USE_FLOOR));
if (!o_ptr) return;
- p_ptr->energy_use = 50;
+ take_turn(p_ptr, 50);
/* Access the primary torch */
j_ptr = &inventory[INVEN_LITE];
}
- take_turn(p_ptr, 100);
/* teleport from mirror costs small energy */
- if( on_mirror && p_ptr->pclass == CLASS_MIRROR_MASTER )
+ if(on_mirror && p_ptr->pclass == CLASS_MIRROR_MASTER)
{
- if( n==3 || n==5 || n==7 || n==16 ) p_ptr->energy_use = 50;
+ if( n==3 || n==5 || n==7 || n==16 ) take_turn(p_ptr, 50);
+ }
+ else
+ {
+ take_turn(p_ptr, 100);
}
if ((use_mind == MIND_BERSERKER) || (use_mind == MIND_NINJUTSU))
}
}
- /* HACK */
- p_ptr->energy_use = 1000;
+ take_turn(p_ptr, 1000);
/* Remember the position */
p_ptr->oldpx = p_ptr->x;