fix: phan 지시에 따라 일부 버그 수정
- null && key_exists 버그 - or assign이 integer 대상이므로 직접 연산 - false 대신 0 입력한 곳 수정 - 자체 Deprecate 처리한 함수 회피 - 초기화되지 않은 [] 확인하여 처리 - sleep은 정수만 받으므로 usleep으로 변경 - 선언하지 않고 그냥 사용하던 member 변수 선언 - boolean operation 순서 틀린 부분 수정
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
<?php
|
||||
namespace sammo\Event\Action;
|
||||
|
||||
use function sammo\getNationStaticInfo;
|
||||
|
||||
use sammo\ActionLogger;
|
||||
use sammo\CityConst;
|
||||
use sammo\DB;
|
||||
|
||||
@@ -12,7 +12,6 @@ use sammo\Scenario\Nation;
|
||||
use sammo\UniqueConst;
|
||||
use sammo\Util;
|
||||
|
||||
use function sammo\getNationStaticInfo;
|
||||
use function sammo\refreshNationStaticInfo;
|
||||
|
||||
/**
|
||||
|
||||
@@ -15,7 +15,6 @@ use sammo\UniqueConst;
|
||||
use sammo\Util;
|
||||
|
||||
use function sammo\GetNationColors;
|
||||
use function sammo\getNationStaticInfo;
|
||||
use function sammo\pickGeneralFromPool;
|
||||
use function sammo\refreshNationStaticInfo;
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ class RegNPC extends \sammo\Event\Action{
|
||||
|
||||
$this->npc=(new \sammo\Scenario\GeneralBuilder(
|
||||
$name,
|
||||
0,
|
||||
false,
|
||||
$picturePath,
|
||||
$nationID
|
||||
))
|
||||
|
||||
@@ -23,7 +23,7 @@ class RegNeutralNPC extends \sammo\Event\Action{
|
||||
){
|
||||
$this->npc=(new \sammo\Scenario\GeneralBuilder(
|
||||
$name,
|
||||
0,
|
||||
false,
|
||||
$picturePath,
|
||||
$nationID
|
||||
))
|
||||
|
||||
Reference in New Issue
Block a user