bonus2 bAddRace,RC_DemiHuman,95;
bonus2 bAddRace,RC_Player_Human,95;
bonus2 bIgnoreDefRaceRate,RC_DemiHuman,20;
bonus2 bIgnoreDefRaceRate,RC_Player_Human,20;
bonus bUnbreakableWeapon;
if (getrefine()>5) {
   bonus2 bAddRace,RC_DemiHuman,(getrefine()-4)*(getrefine()-4);
   bonus2 bAddRace,RC_Player_Human,(getrefine()-4)*(getrefine()-4);
   bonus2 bIgnoreDefRaceRate,RC_DemiHuman,5;
   bonus2 bIgnoreDefRaceRate,RC_Player_Human,5;
}
if (getrefine()>8) {
   bonus3 bAutoSpell,"MO_INVESTIGATE",5,(getrefine()*10-50);
   bonus3 bAutoSpell,"AL_DECAGI",1,(getrefine()*10-50);
}