balance: 유니크 아이템을 얻을 수 있는 커맨드 증가

- 강행, 거병, 견문, 군량매매, 귀환, 등용, 물자조달, 이동, 장비매매, 증여, 헌납
This commit is contained in:
2021-09-11 22:38:35 +09:00
parent 1fb1e1a170
commit a57ba1c6e3
11 changed files with 82 additions and 52 deletions
+3
View File
@@ -13,6 +13,7 @@ use \sammo\LastTurn;
use \sammo\Command; use \sammo\Command;
use function \sammo\printCitiesBasedOnDistance; use function \sammo\printCitiesBasedOnDistance;
use function sammo\tryUniqueItemLottery;
use \sammo\Constraint\Constraint; use \sammo\Constraint\Constraint;
use \sammo\Constraint\ConstraintHelper; use \sammo\Constraint\ConstraintHelper;
@@ -161,6 +162,8 @@ class che_강행 extends Command\GeneralCommand
$general->increaseVar('leadership_exp', 1); $general->increaseVar('leadership_exp', 1);
$this->setResultTurn(new LastTurn(static::getName(), $this->arg)); $this->setResultTurn(new LastTurn(static::getName(), $this->arg));
$general->checkStatChange(); $general->checkStatChange();
tryUniqueItemLottery($general);
$general->applyDB($db); $general->applyDB($db);
return true; return true;
+3 -2
View File
@@ -16,8 +16,7 @@ use \sammo\Constraint\ConstraintHelper;
use sammo\CityConst; use sammo\CityConst;
use function sammo\refreshNationStaticInfo; use function sammo\refreshNationStaticInfo;
use function sammo\getAllNationStaticInfo; use function sammo\getAllNationStaticInfo;
use function sammo\tryUniqueItemLottery;
class che_거병 extends Command\GeneralCommand{ class che_거병 extends Command\GeneralCommand{
static protected $actionName = '거병'; static protected $actionName = '거병';
@@ -172,6 +171,8 @@ class che_거병 extends Command\GeneralCommand{
$this->setResultTurn(new LastTurn(static::getName(), $this->arg)); $this->setResultTurn(new LastTurn(static::getName(), $this->arg));
$general->checkStatChange(); $general->checkStatChange();
tryUniqueItemLottery($general);
$general->applyDB($db); $general->applyDB($db);
return true; return true;
+3
View File
@@ -14,6 +14,7 @@ use \sammo\Constraint\Constraint;
use \sammo\Constraint\ConstraintHelper; use \sammo\Constraint\ConstraintHelper;
use \sammo\TextDecoration\SightseeingMessage; use \sammo\TextDecoration\SightseeingMessage;
use function sammo\tryUniqueItemLottery;
class che_견문 extends Command\GeneralCommand{ class che_견문 extends Command\GeneralCommand{
static protected $actionName = '견문'; static protected $actionName = '견문';
@@ -111,6 +112,8 @@ class che_견문 extends Command\GeneralCommand{
$general->addExperience($exp); $general->addExperience($exp);
$this->setResultTurn(new LastTurn(static::getName(), $this->arg)); $this->setResultTurn(new LastTurn(static::getName(), $this->arg));
$general->checkStatChange(); $general->checkStatChange();
tryUniqueItemLottery($general);
$general->applyDB($db); $general->applyDB($db);
return true; return true;
@@ -16,6 +16,8 @@ use \sammo\Constraint\Constraint;
use \sammo\Constraint\ConstraintHelper; use \sammo\Constraint\ConstraintHelper;
use sammo\MustNotBeReachedException; use sammo\MustNotBeReachedException;
use function sammo\tryUniqueItemLottery;
class che_군량매매 extends Command\GeneralCommand{ class che_군량매매 extends Command\GeneralCommand{
static protected $actionName = '군량매매'; static protected $actionName = '군량매매';
static public $reqArg = true; static public $reqArg = true;
@@ -176,6 +178,8 @@ class che_군량매매 extends Command\GeneralCommand{
$this->setResultTurn(new LastTurn(static::getName(), $this->arg)); $this->setResultTurn(new LastTurn(static::getName(), $this->arg));
$general->checkStatChange(); $general->checkStatChange();
tryUniqueItemLottery($general);
$general->applyDB($db); $general->applyDB($db);
return true; return true;
+3 -1
View File
@@ -14,7 +14,7 @@ use \sammo\Constraint\Constraint;
use \sammo\Constraint\ConstraintHelper; use \sammo\Constraint\ConstraintHelper;
use sammo\CityConst; use sammo\CityConst;
use function sammo\tryUniqueItemLottery;
class che_귀환 extends Command\GeneralCommand{ class che_귀환 extends Command\GeneralCommand{
static protected $actionName = '귀환'; static protected $actionName = '귀환';
@@ -95,6 +95,8 @@ class che_귀환 extends Command\GeneralCommand{
$general->increaseVar('leadership_exp', 1); $general->increaseVar('leadership_exp', 1);
$this->setResultTurn(new LastTurn(static::getName(), $this->arg)); $this->setResultTurn(new LastTurn(static::getName(), $this->arg));
$general->checkStatChange(); $general->checkStatChange();
tryUniqueItemLottery($general);
$general->applyDB($db); $general->applyDB($db);
return true; return true;
+3
View File
@@ -15,6 +15,7 @@ use \sammo\{
use function \sammo\getAllNationStaticInfo; use function \sammo\getAllNationStaticInfo;
use function \sammo\getNationStaticInfo; use function \sammo\getNationStaticInfo;
use function \sammo\newColor; use function \sammo\newColor;
use function sammo\tryUniqueItemLottery;
use \sammo\Constraint\Constraint; use \sammo\Constraint\Constraint;
use \sammo\Constraint\ConstraintHelper; use \sammo\Constraint\ConstraintHelper;
@@ -164,6 +165,8 @@ class che_등용 extends Command\GeneralCommand{
$this->setResultTurn(new LastTurn(static::getName(), $this->arg)); $this->setResultTurn(new LastTurn(static::getName(), $this->arg));
$general->checkStatChange(); $general->checkStatChange();
tryUniqueItemLottery($general);
$general->applyDB($db); $general->applyDB($db);
return true; return true;
@@ -13,6 +13,7 @@ use \sammo\{
use function \sammo\getDomesticExpLevelBonus; use function \sammo\getDomesticExpLevelBonus;
use function \sammo\CriticalScoreEx; use function \sammo\CriticalScoreEx;
use function sammo\tryUniqueItemLottery;
use \sammo\Constraint\Constraint; use \sammo\Constraint\Constraint;
use \sammo\Constraint\ConstraintHelper; use \sammo\Constraint\ConstraintHelper;
@@ -120,6 +121,8 @@ class che_물자조달 extends Command\GeneralCommand{
$this->setResultTurn(new LastTurn(static::getName(), $this->arg)); $this->setResultTurn(new LastTurn(static::getName(), $this->arg));
$general->checkStatChange(); $general->checkStatChange();
tryUniqueItemLottery($general);
$general->applyDB($db); $general->applyDB($db);
return true; return true;
+3
View File
@@ -13,6 +13,7 @@ use \sammo\LastTurn;
use \sammo\Command; use \sammo\Command;
use function \sammo\printCitiesBasedOnDistance; use function \sammo\printCitiesBasedOnDistance;
use function sammo\tryUniqueItemLottery;
use \sammo\Constraint\Constraint; use \sammo\Constraint\Constraint;
use \sammo\Constraint\ConstraintHelper; use \sammo\Constraint\ConstraintHelper;
@@ -169,6 +170,8 @@ class che_이동 extends Command\GeneralCommand
$general->increaseVar('leadership_exp', 1); $general->increaseVar('leadership_exp', 1);
$this->setResultTurn(new LastTurn(static::getName(), $this->arg)); $this->setResultTurn(new LastTurn(static::getName(), $this->arg));
$general->checkStatChange(); $general->checkStatChange();
tryUniqueItemLottery($general);
$general->applyDB($db); $general->applyDB($db);
return true; return true;
@@ -13,6 +13,7 @@ use \sammo\{
}; };
use function \sammo\buildItemClass; use function \sammo\buildItemClass;
use function sammo\tryUniqueItemLottery;
use \sammo\Constraint\Constraint; use \sammo\Constraint\Constraint;
use \sammo\Constraint\ConstraintHelper; use \sammo\Constraint\ConstraintHelper;
@@ -176,6 +177,7 @@ class che_장비매매 extends Command\GeneralCommand{
$general->addExperience($exp); $general->addExperience($exp);
$this->setResultTurn(new LastTurn(static::getName(), $this->arg)); $this->setResultTurn(new LastTurn(static::getName(), $this->arg));
$general->checkStatChange(); $general->checkStatChange();
tryUniqueItemLottery($general);
$general->applyDB($db); $general->applyDB($db);
return true; return true;
+3
View File
@@ -16,6 +16,7 @@ use \sammo\Command;
use \sammo\Constraint\Constraint; use \sammo\Constraint\Constraint;
use \sammo\Constraint\ConstraintHelper; use \sammo\Constraint\ConstraintHelper;
use function sammo\tryUniqueItemLottery;
class che_증여 extends Command\GeneralCommand class che_증여 extends Command\GeneralCommand
{ {
@@ -168,6 +169,8 @@ class che_증여 extends Command\GeneralCommand
$this->setResultTurn(new LastTurn(static::getName(), $this->arg)); $this->setResultTurn(new LastTurn(static::getName(), $this->arg));
$general->checkStatChange(); $general->checkStatChange();
tryUniqueItemLottery($general);
$general->applyDB($db); $general->applyDB($db);
$destGeneral->applyDB($db); $destGeneral->applyDB($db);
+3
View File
@@ -15,6 +15,7 @@ use \sammo\Command;
use \sammo\Constraint\Constraint; use \sammo\Constraint\Constraint;
use \sammo\Constraint\ConstraintHelper; use \sammo\Constraint\ConstraintHelper;
use function sammo\tryUniqueItemLottery;
class che_헌납 extends Command\GeneralCommand class che_헌납 extends Command\GeneralCommand
{ {
@@ -144,6 +145,8 @@ class che_헌납 extends Command\GeneralCommand
$this->setResultTurn(new LastTurn(static::getName(), $this->arg)); $this->setResultTurn(new LastTurn(static::getName(), $this->arg));
$general->checkStatChange(); $general->checkStatChange();
tryUniqueItemLottery($general);
$general->applyDB($db); $general->applyDB($db);
return true; return true;