NPC능동 추가

This commit is contained in:
2018-10-15 01:23:44 +09:00
parent f66d655782
commit 0aa2f2c44d
7 changed files with 141 additions and 10 deletions
@@ -8,7 +8,8 @@ use \sammo\{
getGeneralLeadership,getGeneralPower,getGeneralIntel,
getDomesticExpLevelBonus,
CriticalRatioDomestic, CriticalScore,
uniqueItemEx
uniqueItemEx,
LastTurn
};
use \sammo\Command;
@@ -47,6 +48,7 @@ class che_주민선정 extends Command\GeneralCommand{
}
protected function argTest():bool{
$this->arg = null;
return true;
}
@@ -150,7 +152,7 @@ class che_주민선정 extends Command\GeneralCommand{
$general->increaseVar('experience', $exp);
$general->increaseVar('dedication', $ded);
$general->increaseVar(static::$statKey.'2', 1);
$general->updateVar('resturn', 'SUCCESS');
$general->setResultTurn(new LastTurn(static::getName(), $this->arg));
$general->applyDB($db);
$this->checkStatChange();