game: NPC 요양 기준 설정 가능
This commit is contained in:
@@ -146,6 +146,8 @@ class AutorunNationPolicy {
|
|||||||
public $safeRecruitCityPopulationRatio = 0.5;
|
public $safeRecruitCityPopulationRatio = 0.5;
|
||||||
public $properWarTrainAtmos = 90;
|
public $properWarTrainAtmos = 90;
|
||||||
|
|
||||||
|
public $cureThreshold = 10;
|
||||||
|
|
||||||
///이쪽의 값이 실제 초기화 값임
|
///이쪽의 값이 실제 초기화 값임
|
||||||
public static $defaultPolicy = [
|
public static $defaultPolicy = [
|
||||||
'reqNationGold'=>10000,
|
'reqNationGold'=>10000,
|
||||||
@@ -173,6 +175,8 @@ class AutorunNationPolicy {
|
|||||||
'minNPCRecruitCityPopulation'=>50000,
|
'minNPCRecruitCityPopulation'=>50000,
|
||||||
'safeRecruitCityPopulationRatio'=>0.5,
|
'safeRecruitCityPopulationRatio'=>0.5,
|
||||||
'properWarTrainAtmos'=>90,
|
'properWarTrainAtmos'=>90,
|
||||||
|
|
||||||
|
'cureThreshold'=>10,
|
||||||
];
|
];
|
||||||
|
|
||||||
function __construct(General $general, $aiOptions, ?array $nationPolicy, ?array $serverPolicy, array $nation, array $env)
|
function __construct(General $general, $aiOptions, ?array $nationPolicy, ?array $serverPolicy, array $nation, array $env)
|
||||||
|
|||||||
@@ -3718,7 +3718,7 @@ class GeneralAI
|
|||||||
return $reservedCommand;
|
return $reservedCommand;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($general->getVar('injury') > 10) {
|
if ($general->getVar('injury') > $this->nationPolicy->cureThreshold) {
|
||||||
$result = buildGeneralCommandClass('che_요양', $general, $this->env);
|
$result = buildGeneralCommandClass('che_요양', $general, $this->env);
|
||||||
$result->reason = 'do요양';
|
$result->reason = 'do요양';
|
||||||
return $result;
|
return $result;
|
||||||
|
|||||||
@@ -163,6 +163,17 @@
|
|||||||
훈련/사기진작 기준치입니다. 이보다 같거나 높으면 출병합니다.
|
훈련/사기진작 기준치입니다. 이보다 같거나 높으면 출병합니다.
|
||||||
</NumberInputWithInfo>
|
</NumberInputWithInfo>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col">
|
||||||
|
<NumberInputWithInfo
|
||||||
|
v-model="nationPolicy.cureThreshold"
|
||||||
|
:step="5"
|
||||||
|
:min="10"
|
||||||
|
:max="100"
|
||||||
|
title="요양 기준"
|
||||||
|
>
|
||||||
|
요양 기준 %입니다. 이보다 많이 부상을 입으면 요양합니다.
|
||||||
|
</NumberInputWithInfo>
|
||||||
|
</div>
|
||||||
<!--allowNpcAttackCity는 현재 게임 내 비활성-->
|
<!--allowNpcAttackCity는 현재 게임 내 비활성-->
|
||||||
</div>
|
</div>
|
||||||
<div style="padding: 0 8pt">
|
<div style="padding: 0 8pt">
|
||||||
|
|||||||
@@ -158,6 +158,7 @@ export type NationPolicy = {
|
|||||||
minNPCRecruitCityPopulation: number,
|
minNPCRecruitCityPopulation: number,
|
||||||
safeRecruitCityPopulationRatio: number,
|
safeRecruitCityPopulationRatio: number,
|
||||||
properWarTrainAtmos: number,
|
properWarTrainAtmos: number,
|
||||||
|
cureThreshold: number,
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ItemTypeKey = 'horse' | 'weapon' | 'book' | 'item';
|
export type ItemTypeKey = 'horse' | 'weapon' | 'book' | 'item';
|
||||||
|
|||||||
Reference in New Issue
Block a user