From ee778e6a0949862bbed9f0db288878afb2fa98d9 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sat, 16 May 2020 12:37:13 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9D=B8=EC=9E=AC=ED=83=90=EC=83=89=20?= =?UTF-8?q?=EC=97=B0=EB=A0=B9=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/Command/General/che_인재탐색.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/hwe/sammo/Command/General/che_인재탐색.php b/hwe/sammo/Command/General/che_인재탐색.php index 2370fc39..61887541 100644 --- a/hwe/sammo/Command/General/che_인재탐색.php +++ b/hwe/sammo/Command/General/che_인재탐색.php @@ -263,7 +263,9 @@ class che_인재탐색 extends Command\GeneralCommand{ ], 'nation=%i', $nationID); } - $age = $env['year'] - 20; + $age = Util::randRangeInt(20, 25); + $birthYear = $env['year'] - $age; + $deathYear = $env['year'] + Util::randRangeInt(10, 50); $newNPC = new \sammo\Scenario\NPC( Util::randRangeInt(1, 150), @@ -275,8 +277,8 @@ class che_인재탐색 extends Command\GeneralCommand{ $strength, $intel, $scoutLevel, - $age, - $env['year'] + Util::randRangeInt(10, 50), + $birthYear, + $deathYear, null, null );