RandomizeSkills.h
int SkillAlloc(unsigned char *skillslot, int skillID, int *skillcount)
{
  /* If this skill is already given, skip */
  if(*skillslot & skillID)
  {
    return 0;  
  }
  
  /* else add the skill and decrement how many skills we still need */
  *skillslot += skillID;
  (*skillcount)--;
  
  return 1;
}
/* Function for applying the requested skill */
/* Returns 1 on success, 0 if the given skill is already applied */
Function for applying the requested skill
Returns 1 on success, 0 if the given skill is already applied
Function for applying the requested skill Returns 1 on success 0 if the given skill is already applied
int SkillAlloc(unsigned char *skillslot, int skillID, int *skillcount)
{
  if(*skillslot & skillID)
  {
    return 0;  
  }
  *skillslot += skillID;
  (*skillcount)--;
  return 1;
}
int SkillAlloc ( unsigned char * skillslot , int skillID , int * skillcount ) { if ( * skillslot & skillID ) { return 0 ; } * skillslot += skillID ; ( * skillcount ) -- ; return 1 ; }
Function for applying the requested skill
Returns 1 on success, 0 if the given skill is already applied
Function for applying the requested skill Returns 1 on success 0 if the given skill is already applied
/* If this skill is already given, skip */ /* else add the skill and decrement how many skills we still need */