fix: 사전거병 후 군주가 사라지는 경우에 대한 수정 #247
@@ -3440,9 +3440,9 @@ class GeneralAI
|
||||
$cmd = buildGeneralCommandClass($this->rng->choice($candidate), $this->general, $this->env);
|
||||
if (!$cmd->hasFullConditionMet()) {
|
||||
|
jyp9 marked this conversation as resolved
Outdated
|
||||
$cmd = buildGeneralCommandClass('che_물자조달', $this->general, $this->env);
|
||||
}
|
||||
if (!$cmd->hasFullConditionMet()) {
|
||||
$cmd = buildGeneralCommandClass('che_견문', $this->general, $this->env);
|
||||
if (!$cmd->hasFullConditionMet()) {
|
||||
$cmd = buildGeneralCommandClass('che_견문', $this->general, $this->env);
|
||||
}
|
||||
}
|
||||
|
||||
return $cmd;
|
||||
|
||||
Reference in New Issue
Block a user
이번 코드 한정으로 제 스타일은
에 가깝긴 하겠네요.
물론 조기 탈출은 좋아합니다:)
아 이거 맨 처음 $cmd가 잘 되어 있으면 hasFullConditionMet()을 두 번이나 검사하게 되긴 하지만.. 그래도 스타일 맞추는 게 좋은게 좋은거지 싶어서 일단 따라가봄미다..
는 아무래도 아닌 거 같아서 약간 더 수정했습니다.