diff --git a/hwe/func_time_event.php b/hwe/func_time_event.php index d11a9e34..d25c055d 100644 --- a/hwe/func_time_event.php +++ b/hwe/func_time_event.php @@ -1,10 +1,29 @@ update( + 'UPDATE `rank_data` D SET `value` = (SELECT SUM(`value`) FROM `rank_data` S WHERE S.general_id = D.general_id AND S.`type` IN %ls) WHERE D.`type` = %s', + [RankColumn::inherit_point_earned_by_action->value, RankColumn::inherit_point_earned_by_merge->value], + RankColumn::inherit_point_earned->value + ); + + $db->update( + 'UPDATE `rank_data` D SET `value` = (SELECT `value` FROM `rank_data` S WHERE S.general_id = D.general_id AND S.`type` = %s) WHERE D.`type` = %s', + RankColumn::inherit_point_spent_dynamic->value, + RankColumn::inherit_point_spent->value + ); +} + //1월마다 실행 function processSpring() { $db = DB::db(); diff --git a/hwe/sammo/TurnExecutionHelper.php b/hwe/sammo/TurnExecutionHelper.php index d6029d83..0c9cb2ec 100644 --- a/hwe/sammo/TurnExecutionHelper.php +++ b/hwe/sammo/TurnExecutionHelper.php @@ -411,6 +411,7 @@ class TurnExecutionHelper // 분기계산. 장수들 턴보다 먼저 있다면 먼저처리 if ($gameStor->month == 1) { + processSumInheritPointRank(); processSpring(); processGoldIncome(); updateYearly(); @@ -425,6 +426,7 @@ class TurnExecutionHelper updateQuaterly(); disaster(); } elseif ($gameStor->month == 7) { + processSumInheritPointRank(); processFall(); processRiceIncome(); updateQuaterly();