void one_activation(object_type *o_ptr)
{
int type = 0;
- int chance = 0;
+ PERCENTAGE chance = 0;
while (randint1(100) >= chance)
{
int num = 0;
TERM_LEN y = 1;
TERM_LEN x = 18;
- int minfail = 0;
+ PERCENTAGE minfail = 0;
PLAYER_LEVEL plev = p_ptr->lev;
- int chance = 0;
+ PERCENTAGE chance = 0;
int ask;
char choice;
char out_val[160];
*/
bool do_cmd_mane(bool baigaesi)
{
- int n = 0, j;
- int chance;
- int minfail = 0;
+ int n = 0, j;
+ PERCENTAGE chance;
+ PERCENTAGE minfail = 0;
PLAYER_LEVEL plev = p_ptr->lev;
monster_power spell;
bool cast;
int num = 0;
TERM_LEN y = 1;
TERM_LEN x = 10;
- int minfail = 0;
+ PERCENTAGE minfail = 0;
PLAYER_LEVEL plev = p_ptr->lev;
- int chance = 0;
+ PERCENTAGE chance = 0;
int ask = TRUE;
char choice;
char out_val[160];
{
SPELL_IDX n = 0;
int b = 0;
- int chance;
- int minfail = 0;
+ PERCENTAGE chance;
+ PERCENTAGE minfail = 0;
PLAYER_LEVEL plev = p_ptr->lev;
int old_csp = p_ptr->csp;
mind_type spell;
switch(use_mind)
{
case MIND_MINDCRAFTER:
- /* Cast the spell */
+
cast = cast_mindcrafter_spell(n);
break;
case MIND_KI:
- /* Cast the spell */
+
cast = cast_force_spell(n);
break;
case MIND_BERSERKER:
- /* Cast the spell */
+
cast = cast_berserk_spell(n);
break;
case MIND_MIRROR_MASTER:
- /* Cast the spell */
+
if( is_mirror_grid(¤t_floor_ptr->grid_array[p_ptr->y][p_ptr->x]) )on_mirror = TRUE;
cast = cast_mirror_spell(n);
break;
case MIND_NINJUTSU:
- /* Cast the spell */
+
cast = cast_ninja_spell(n);
break;
default:
if (drop_chosen_item)
{
ARTIFACT_IDX a_idx = 0;
- int chance = 0;
+ PERCENTAGE chance = 0;
for (i = 0; i < 4; i++)
{
/* Process affected monsters */
if (g_ptr->m_idx)
{
- int chance = 25;
+ PERCENTAGE chance = 25;
monster_type *m_ptr = ¤t_floor_ptr->m_list[g_ptr->m_idx];
monster_race *r_ptr = &r_info[m_ptr->r_idx];
update_monster(g_ptr->m_idx, FALSE);
(p_ptr->pclass == CLASS_MIRROR_MASTER) ||
(p_ptr->pclass == CLASS_FORCETRAINER))
{
- int minfail = 0;
+ PERCENTAGE minfail = 0;
PLAYER_LEVEL plev = p_ptr->lev;
- int chance = 0;
+ PERCENTAGE chance = 0;
mind_type spell;
char comment[80];
char psi_desc[80];