refac: brandonwamboldt/utilphp 의존 코드 수정
- 실제 의존성 제거는 이후에에
This commit is contained in:
@@ -208,7 +208,7 @@ class che_랜덤임관 extends Command\GeneralCommand
|
||||
foreach ($rawGeneralsCnt as $nation) {
|
||||
$calcCnt = $nation['warpower'] + $nation['develpower'];
|
||||
|
||||
if ($general->getNPCType() < 2 && Util::starts_with($nation['name'], 'ⓤ')) {
|
||||
if ($general->getNPCType() < 2 && str_starts_with($nation['name'], 'ⓤ')) {
|
||||
$calcCnt *= 100;
|
||||
}
|
||||
|
||||
|
||||
@@ -164,7 +164,7 @@ class che_출병 extends Command\GeneralCommand
|
||||
|
||||
$currDist = 999;
|
||||
|
||||
$minDist = Util::array_first_key($distanceList);
|
||||
$minDist = array_key_first($distanceList);
|
||||
do {
|
||||
//1: 최단 거리 도시 중 공격 대상이 있는가 확인
|
||||
//2: 최단 거리 + 1 도시 중 공격 대상이 있는가 확인
|
||||
|
||||
Reference in New Issue
Block a user