fix: 토너먼트 베팅 시 최소 골드가 500이 아닌 버그 수정
This commit is contained in:
@@ -143,7 +143,7 @@ class Betting
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$remainPoint = $db->queryFirstField('SELECT gold FROM general WHERE no = %i', $generalID) ?? 0;
|
$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('금이 부족합니다.');
|
throw new \RuntimeException('금이 부족합니다.');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -205,6 +205,8 @@ class GameConstBase
|
|||||||
public static $maxAvailableWarSettingCnt = 10;
|
public static $maxAvailableWarSettingCnt = 10;
|
||||||
public static $incAvailableWarSettingCnt = 2;
|
public static $incAvailableWarSettingCnt = 2;
|
||||||
|
|
||||||
|
public static $minGoldRequiredWhenBetting = 500;
|
||||||
|
|
||||||
public static $minMonthToAllowInheritItem = 4;
|
public static $minMonthToAllowInheritItem = 4;
|
||||||
public static $inheritBornSpecialPoint = 6000;
|
public static $inheritBornSpecialPoint = 6000;
|
||||||
public static $inheritBornTurntimePoint = 3000;
|
public static $inheritBornTurntimePoint = 3000;
|
||||||
|
|||||||
Reference in New Issue
Block a user