From 8bead301efde1a1ac0f31667033b3b6b14a189bf Mon Sep 17 00:00:00 2001 From: hide_d Date: Tue, 16 Nov 2021 23:45:33 +0900 Subject: [PATCH] =?UTF-8?q?game:=20NPC=20=EB=B2=A0=ED=8C=85=20=ED=8C=90?= =?UTF-8?q?=EB=8F=88=20=EC=8A=A4=EC=BC=80=EC=9D=BC=20=EC=A6=9D=EA=B0=80?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/func_tournament.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hwe/func_tournament.php b/hwe/func_tournament.php index 244912a2..51345b8d 100644 --- a/hwe/func_tournament.php +++ b/hwe/func_tournament.php @@ -306,12 +306,12 @@ function startTournament($auto, $type) { function startBetting(){ $db = DB::db(); $gameStor = KVStorage::getStorage($db, 'game_env'); - [$year, $month] = $gameStor->getValuesAsArray(['year', 'month']); + [$year, $month, $startyear] = $gameStor->getValuesAsArray(['year', 'month', 'startyear']); pushGlobalHistoryLog([ "◆{$year}년 {$month}월:【대회】우승자를 예상하는 내기가 진행중입니다! 호사가의 참여를 기다립니다!" ], $year, $month); - $betGold = 10; + $betGold = Util::valueFit(floor((3+$year-$startyear)*0.334)*10, 10); $npcList = $db->queryFirstColumn('SELECT no FROM general WHERE npc >= 2 AND gold >= (500 + %i)', $betGold); $npcBet = [];