From 51d523ae72183a20faaa245d6586613f0b155b53 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sun, 14 Nov 2021 18:45:28 +0900 Subject: [PATCH] =?UTF-8?q?game:=20=EA=B5=AD=EB=A0=A5=20=EA=B3=84=EC=82=B0?= =?UTF-8?q?=EC=8B=9D=EC=97=90=20=EB=9E=9C=EB=8D=A4=EC=9E=84=EA=B4=80=20?= =?UTF-8?q?=EA=B3=84=EC=82=B0=EC=8B=9D=20=EC=9D=BC=EB=B6=80=EB=A5=BC=20?= =?UTF-8?q?=EB=B0=98=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/func_gamerule.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hwe/func_gamerule.php b/hwe/func_gamerule.php index 871c053e..656fbebe 100644 --- a/hwe/func_gamerule.php +++ b/hwe/func_gamerule.php @@ -371,7 +371,11 @@ function postUpdateMonthly() sum(pop)*sum(pop+agri+comm+secu+wall+def)/sum(pop_max+agri_max+comm_max+secu_max+wall_max+def_max)/100 ) from city where nation=A.nation and supply=1 )) - +(select sum(leadership+strength+intel) from general where nation=A.nation) + +(select SUM((ra.value + 1000)/(rb.value + 1000)*(CASE WHEN g.`npc` < 2 THEN 2 ELSE 1 END)*(CASE WHEN g.`leadership` >= 40 THEN g.`leadership` ELSE 0 END)*2 + (SQRT(g.intel * g.strength) * 2 + g.leadership / 2)/2) + FROM general AS g + LEFT JOIN `rank_data` AS ra ON g.`no` = ra.general_id AND ra.`type` = \'killcrew_person\' + LEFT JOIN `rank_data` AS rb ON g.`no` = rb.general_id AND rb.`type` = \'deathcrew_person\' + WHERE g.nation = A.nation) +(select round(sum(dex1+dex2+dex3+dex4+dex5)/1000) from general where nation=A.nation) +(select round(sum(experience+dedication)/100) from general where nation=A.nation) +(select round(avg(connect)) from general where nation=A.nation)