fix: 토너먼트 베팅 시 최소 골드가 500이 아닌 버그 수정

This commit is contained in:
2022-05-13 21:25:30 +09:00
parent 5d499bbfbe
commit 400e47f616
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -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('금이 부족합니다.');
}
}
+2
View File
@@ -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;