~nckmccnnll/faangband/trunk

« back to all changes in this revision

Viewing changes to src/monster2.c

  • Committer: Nick McConnell
  • Date: 2010-12-07 08:09:49 UTC
  • mfrom: (125.1.16 bug-fix)
  • Revision ID: nckmccnnll@yahoo.com.au-20101207080949-x6pnlwvotoa83r0i
Bugfixes from LostTemplar

Show diffs side-by-side

added added

removed removed

Lines of Context:
2977
2977
      /* Get a possible race */
2978
2978
      shape = get_mon_num((p_ptr->depth + r_ptr->level) / 2 + 1 + 
2979
2979
                          (p_ptr->depth >= 20 ? 4 : p_ptr->depth / 5));
2980
 
      
 
2980
 
 
2981
      /* Sauron's hack */
 
2982
      if (!shape && (type == SUMMON_SAURON)) shape = m_ptr->r_idx - 1 - rand_int (3);
 
2983
 
2981
2984
      /* Temporarily change race */
2982
2985
      tmp_ptr = &r_info[shape];
2983
2986
      temp = m_ptr->orig_idx;