game: NPC 요양 기준 설정 가능

This commit is contained in:
2022-07-11 20:23:55 +09:00
parent d9beabbbbc
commit 88fcc64537
4 changed files with 17 additions and 1 deletions
+1 -1
View File
@@ -3718,7 +3718,7 @@ class GeneralAI
return $reservedCommand;
}
if ($general->getVar('injury') > 10) {
if ($general->getVar('injury') > $this->nationPolicy->cureThreshold) {
$result = buildGeneralCommandClass('che_요양', $general, $this->env);
$result->reason = 'do요양';
return $result;