버그 수정
This commit is contained in:
@@ -191,6 +191,8 @@ class che_인재탐색 extends Command\GeneralCommand{
|
||||
|
||||
$isOurNation = $this->nation['scout'] == 0;
|
||||
|
||||
$age = $env['year'] - 20;
|
||||
|
||||
$newNPC = new \sammo\Scenario\NPC(
|
||||
Util::randRangeInt(1, 150),
|
||||
\sammo\getRandGenName(),
|
||||
@@ -201,7 +203,7 @@ class che_인재탐색 extends Command\GeneralCommand{
|
||||
$power,
|
||||
$intel,
|
||||
$isOurNation?1:0,
|
||||
$env['year'] - 20,
|
||||
$age,
|
||||
$env['year'] + Util::randRangeInt(10, 50),
|
||||
null,
|
||||
null
|
||||
|
||||
@@ -57,14 +57,15 @@ class che_징병 extends Command\GeneralCommand{
|
||||
if(!is_int($crewType)){
|
||||
return false;
|
||||
}
|
||||
if(!is_int($amount)){
|
||||
if(!is_numeric($amount)){
|
||||
return false;
|
||||
}
|
||||
$amount = (int)$amount;
|
||||
|
||||
if(GameUnitConst::byID($crewType) === null){
|
||||
return false;
|
||||
}
|
||||
if($amount < 100){
|
||||
if($amount < 0){
|
||||
return false;
|
||||
}
|
||||
$this->arg = [
|
||||
|
||||
Reference in New Issue
Block a user