.@r = getrefine();
bonus bMaxHPrate,5;
bonus bMaxSPrate,5;
bonus bMaxHP,1200;
bonus bMaxSP,250;
if (.@r>=7) {
   bonus bMaxHPrate,1;
   bonus bMaxSPrate,1;
   if (.@r>=9) {
      bonus bMaxHPrate,2;
      bonus bMaxSPrate,2;
      if (.@r>=11) {
         bonus bMaxHPrate,2;
         bonus bMaxSPrate,2;
      }
   }
}