버그 수정

This commit is contained in:
2019-04-21 21:15:53 +09:00
parent da5fc417c5
commit 0c64b506c2
12 changed files with 67 additions and 42 deletions
@@ -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
+3 -2
View File
@@ -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 = [