임관 추가. 유니크 복권 추첨을 General 클래스 용으로 변경

This commit is contained in:
2018-10-21 15:20:27 +09:00
parent 6c5c2d40bc
commit ff87555eba
38 changed files with 467 additions and 165 deletions
+4 -3
View File
@@ -12,7 +12,7 @@ use \sammo\{
use function \sammo\{
uniqueItemEx,
tryUniqueItemLottery,
processWar
};
@@ -51,7 +51,7 @@ class che_출병 extends Command\GeneralCommand{
$this->runnableConstraints=[
['NotOpeningPart'],
['NearCity', 1],
['NoNeutral'],
['NotBeNeutral'],
['OccupiedCity'],
['ReqGeneralCrew'],
['ReqGeneralRice', $reqRice],
@@ -125,7 +125,8 @@ class che_출병 extends Command\GeneralCommand{
//TODO: 장기적으로 통합해야함
processWar($general->getRaw(), $this->destCity);
uniqueItemEx($general->getID(), $logger);
tryUniqueItemLottery($general);
$general->applyDB($db);
return true;
}