AI 구현중
This commit is contained in:
@@ -218,6 +218,17 @@ abstract class BaseCommand{
|
||||
return $this->arg;
|
||||
}
|
||||
|
||||
public function getGeneral():General{
|
||||
return $this->generalObj;
|
||||
}
|
||||
|
||||
public function getNationID(){
|
||||
return $this->generalObj->getNationID();
|
||||
}
|
||||
|
||||
public function getGeneralLevel(){
|
||||
return $this->generalObj->getVar('level');
|
||||
}
|
||||
|
||||
public function getBrief():string{
|
||||
return static::getName();
|
||||
|
||||
@@ -9,13 +9,15 @@ use \sammo\{
|
||||
LastTurn,
|
||||
GameUnitConst,
|
||||
CityConst,
|
||||
Command
|
||||
Command,
|
||||
TimeUtil
|
||||
};
|
||||
|
||||
use function \sammo\{
|
||||
getDomesticExpLevelBonus,
|
||||
CriticalRatioDomestic,
|
||||
CriticalScoreEx
|
||||
CriticalScoreEx,
|
||||
function cutTurn
|
||||
};
|
||||
|
||||
use \sammo\Constraint\Constraint;
|
||||
@@ -131,7 +133,12 @@ class che_발령 extends Command\NationCommand{
|
||||
$josaUl = JosaUtil::pick($destGeneralName, '을');
|
||||
$josaRo = JosaUtil::pick($destCityName, '로');
|
||||
$destGeneral->getLogger()->pushGeneralActionLog("<Y>{$generalName}</>에 의해 <G><b>{$destCityName}</b></>{$josaRo} 발령됐습니다. <1>$date</>");
|
||||
$destGeneral->setAuxVar('last발령', $general->getTurnTime());
|
||||
|
||||
$yearMonth = Util::joinYearMonth($this->env['year'], $this->env['month']);
|
||||
if(cutTurn($general->getTurnTime(), $this->env['turnterm']) != cutTurn($destGeneral->getTurnTime(), $this->env['turnterm'])){
|
||||
$yearMonth+=1;
|
||||
}
|
||||
$destGeneral->setAuxVar('last발령', $yearMonth);
|
||||
$logger->pushGeneralActionLog("<Y>{$destGeneralName}</>{$josaUl} <G><b>{$destCityName}</b></>{$josaRo} 발령했습니다. <1>$date</>");
|
||||
|
||||
$this->setResultTurn(new LastTurn(static::getName(), $this->arg));
|
||||
|
||||
Reference in New Issue
Block a user