.@r = getrefine();
bonus bMaxHP,1500;
bonus bMaxSP,150;
bonus bMaxHPrate,.@r/3;
bonus bMaxSPrate,.@r/3;
if (.@r >= 7) {
   bonus2 bAddClass,Class_All,5;
   bonus bMatkRate,5;
}
if (.@r >= 9) {
   .@val = -500;
   if (.@r >= 11) {
      .@val -= 200;
      if (.@r >= 13) {
         bonus bDelayrate,-5;
         bonus bVariableCastrate,-5;
      }
   }
   bonus bFixedCast,.@val;
}