.@r = getrefine();
.@val = 10;
if (.@r>6) {
   bonus2 bSubSize,Size_Large,10;
   bonus2 bMagicSubSize,Size_Large,10;
   if (.@r>8) {
      .@val += 5;
   }
}
bonus2 bSubSize,Size_Small,.@val;
bonus2 bMagicSubSize,Size_Small,.@val;
bonus2 bSubSize,Size_Medium,.@val;
bonus2 bMagicSubSize,Size_Medium,.@val;