use class, function 커맨드를 php8에서 사용할 수 있도록 수정

- \ 토큰 해석 문제
- VSCode 자동 완성 문제로 use function \sammo\{ 를 모두 해제
This commit is contained in:
2021-08-12 22:35:42 +09:00
parent b4d7acb827
commit 9aa1b25a56
66 changed files with 461 additions and 715 deletions
+17 -22
View File
@@ -2,28 +2,23 @@
namespace sammo\Command\General;
use\sammo\{
DB,
Util,
JosaUtil,
Session,
KVStorage,
General,
ActionLogger,
GameConst,
GameUnitConst,
LastTurn,
Command,
ServConfig
};
use \sammo\DB;
use \sammo\Util;
use \sammo\JosaUtil;
use \sammo\Session;
use \sammo\KVStorage;
use \sammo\General;
use \sammo\ActionLogger;
use \sammo\GameConst;
use \sammo\GameUnitConst;
use \sammo\LastTurn;
use \sammo\Command;
use \sammo\ServConfig;
use function\sammo\{
getDexCall,
getTechCall,
tryUniqueItemLottery,
getTechAbil
};
use function \sammo\getDexCall;
use function \sammo\getTechCall;
use function \sammo\tryUniqueItemLottery;
use function \sammo\getTechAbil;
use \sammo\Constraint\Constraint;
use \sammo\Constraint\ConstraintHelper;
@@ -107,7 +102,7 @@ class che_숙련전환 extends Command\GeneralCommand
$this->srcArmTypeName = GameUnitConst::allType()[$this->srcArmType];
$this->destArmType = $this->arg['destArmType'];
$this->destArmTypeName = GameUnitConst::allType()[$this->destArmType];
[$reqGold, $reqRice] = $this->getCost();
$this->fullConditionConstraints = [