From c74b7d71670e8019eb85b0e55d2dfbc685fc2f76 Mon Sep 17 00:00:00 2001 From: kamichi Date: Wed, 2 Jan 2013 20:28:37 +0900 Subject: [PATCH] modified HANE adjustment --- engine/kage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 } } } -- 1.7.10.4