modified HANE adjustment
authorkamichi <kamichi@fonts.jp>
Wed, 2 Jan 2013 11:28:37 +0000 (20:28 +0900)
committerkamichi <kamichi@fonts.jp>
Wed, 2 Jan 2013 11:28:37 +0000 (20:28 +0900)
engine/kage.js

index e6dda8c..9a53ec8 100755 (executable)
@@ -81,13 +81,13 @@ function Kage(size){
              }\r
              for(var j = 0; j < sa.length; j++){\r
                  if(i != j && sa[j][0] == 1 && sa[j][3] == sa[j][5] && sa[j][4] <= lpy && sa[j][6] >= lpy){\r
-                     if(lpx - sa[j][3] < 900){\r
+                     if(lpx - sa[j][3] < 100){\r
                          mn = Math.min(mn, lpx - sa[j][3]);\r
                      }\r
                  }\r
              }\r
              if(mn != Infinity){\r
-                 sa[i][2] += Math.min(400, 400 - Math.floor(mn / 20) * 100); // 0-8 -> 0-400\r
+                 sa[i][2] += 700 - Math.floor(mn / 15) * 100; // 0-99 -> 0-700\r
              }\r
          }\r
       }\r