Re: [NEWBIE] Adding new classes..

From: Carlton Colter (carlton@COLTER.COM)
Date: 09/27/02


/* I use this THAC0 procedure becuase it evenly divides the thaco into
the number of levels you have. */

/* THAC0 for classes and levels.  (To Hit Armor Class 0) */
int thaco(int class_num, int level)
{
  int high = 20;
  int low = 1;
  switch (class_num) {
  case CLASS_MAGIC_USER: low = 9; break;
  case CLASS_CLERIC:     low = 1; break;
  case CLASS_THIEF:      low = 4; break;
  case CLASS_WARRIOR:    low = 1; break;
  default:
    log("SYSERR: Unknown class in thac0 chart.");
  }
  return ((((LVL_IMMORT-1)-level)/((LVL_IMMORT-1)/(high-low)))+low);
}

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT