bonus2 bAddRace,RC_DemiHuman,95;
bonus2 bAddRace,RC_Player_Human,95;
bonus2 bIgnoreDefRaceRate,RC_DemiHuman,20;
bonus2 bIgnoreDefRaceRate,RC_Player_Human,20;
bonus bUnbreakableWeapon;
.@r = getrefine();
if (.@r>5) {
   bonus2 bAddRace,RC_DemiHuman,pow(min(14,.@r)-4,2);
   bonus2 bAddRace,RC_Player_Human,pow(min(14,.@r)-4,2);
   bonus2 bIgnoreDefRaceRate,RC_DemiHuman,5;
   bonus2 bIgnoreDefRaceRate,RC_Player_Human,5;
}
if (.@r>8) {
   bonus3 bAutoSpell,"MO_INVESTIGATE",5,(.@r*10-50);
   bonus3 bAutoSpell,"AL_DECAGI",1,(.@r*10-50);
}