.@r = getrefine();
if (.@r<5) {
   bonus bHit,20;
   bonus bMaxHPrate,-10;
} else if (.@r<7) {
   bonus bHit,10;
} else if (.@r<9) {
   bonus bHit,7;bonus bMaxHPrate,3;
}
else {
   bonus bHit,4;bonus bMaxHPrate,4;
}