일부 설정값 수정

This commit is contained in:
2020-04-25 06:30:01 +09:00
parent 324a67c7da
commit 5b2b7dc03e
3 changed files with 7 additions and 10 deletions
+2
View File
@@ -979,6 +979,8 @@ function updateNationState() {
999, sprintf('부대장%4d',$lastAssemblerID), null, $nation['nation'], null,
10, 10, 10, 1, $admin['year'] - 15, $admin['year'] + 15, '은둔', '척사'
);
$npcObj->gold=0;
$npcObj->rice=0;
$npcObj->npc = 5;
$npcObj->build($admin);
$npcID = $npcObj->generalID;
+3 -8
View File
@@ -3521,14 +3521,9 @@ class GeneralAI
$outcome = getOutcome(100, $dedicationList);
$bill = intval($income / $outcome * 80); // 수입의 80% 만 지급
$bill = intval($income / $outcome * 90); // 수입의 80% 만 지급
if ($bill < 20) {
$bill = 20;
}
if ($bill > 200) {
$bill = 200;
}
$bill = Util::valueFit($bill, 20, 200);
$db->update('nation', [
'bill' => $bill,
@@ -3563,7 +3558,7 @@ class GeneralAI
$outcome = getOutcome(100, $dedicationList);
$bill = intval($income / $outcome * 80); // 수입의 80% 만 지급
$bill = intval($income / $outcome * 90); // 수입의 80% 만 지급
if ($bill < 20) {
$bill = 20;
+2 -2
View File
@@ -41,8 +41,8 @@ class NPC{
9 => 'ⓞ', //오랑캐?
];
protected $gold;
protected $rice;
public $gold;
public $rice;
protected $specAge = null;
protected $specAge2 = null;