From: kamichi Date: Wed, 2 Jan 2013 11:28:37 +0000 (+0900) Subject: modified HANE adjustment X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=c74b7d71670e8019eb85b0e55d2dfbc685fc2f76;p=chise%2Fkage.git modified HANE adjustment --- diff --git a/engine/kage.js b/engine/kage.js index e6dda8c..9a53ec8 100755 --- a/engine/kage.js +++ b/engine/kage.js @@ -81,13 +81,13 @@ function Kage(size){ } for(var j = 0; j < sa.length; j++){ if(i != j && sa[j][0] == 1 && sa[j][3] == sa[j][5] && sa[j][4] <= lpy && sa[j][6] >= lpy){ - if(lpx - sa[j][3] < 900){ + if(lpx - sa[j][3] < 100){ mn = Math.min(mn, lpx - sa[j][3]); } } } if(mn != Infinity){ - sa[i][2] += Math.min(400, 400 - Math.floor(mn / 20) * 100); // 0-8 -> 0-400 + sa[i][2] += 700 - Math.floor(mn / 15) * 100; // 0-99 -> 0-700 } } }