From 400e47f616edf156c7b2e9e0d8e16f86c81091b3 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Fri, 13 May 2022 21:25:30 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=ED=86=A0=EB=84=88=EB=A8=BC=ED=8A=B8=20?= =?UTF-8?q?=EB=B2=A0=ED=8C=85=20=EC=8B=9C=20=EC=B5=9C=EC=86=8C=20=EA=B3=A8?= =?UTF-8?q?=EB=93=9C=EA=B0=80=20500=EC=9D=B4=20=EC=95=84=EB=8B=8C=20?= =?UTF-8?q?=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/Betting.php | 2 +- hwe/sammo/GameConstBase.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hwe/sammo/Betting.php b/hwe/sammo/Betting.php index 28ae7877..59767609 100644 --- a/hwe/sammo/Betting.php +++ b/hwe/sammo/Betting.php @@ -143,7 +143,7 @@ class Betting } } else { $remainPoint = $db->queryFirstField('SELECT gold FROM general WHERE no = %i', $generalID) ?? 0; - if ($remainPoint < GameConst::$generalMinimumGold + $amount) { + if ($remainPoint < GameConst::$minGoldRequiredWhenBetting + $amount) { throw new \RuntimeException('금이 부족합니다.'); } } diff --git a/hwe/sammo/GameConstBase.php b/hwe/sammo/GameConstBase.php index d4870ffd..69790bcc 100644 --- a/hwe/sammo/GameConstBase.php +++ b/hwe/sammo/GameConstBase.php @@ -205,6 +205,8 @@ class GameConstBase public static $maxAvailableWarSettingCnt = 10; public static $incAvailableWarSettingCnt = 2; + public static $minGoldRequiredWhenBetting = 500; + public static $minMonthToAllowInheritItem = 4; public static $inheritBornSpecialPoint = 6000; public static $inheritBornTurntimePoint = 3000;