전투 버그 수정 중
This commit is contained in:
@@ -118,7 +118,7 @@ class che_몰수 extends Command\NationCommand{
|
||||
$resName = $isGold?'금':'쌀';
|
||||
$destGeneral = $this->destGeneralObj;
|
||||
|
||||
$amount = Util::valueFit($amount, 0, $general->getVar[$resKey]);
|
||||
$amount = Util::valueFit($amount, 0, ($general->getVar[$resKey]- $isGold?GameConst::$generalMinimumGold:GameConst::$generalMinimumRice));
|
||||
$amountText = number_format($amount, 0);
|
||||
|
||||
if($destGeneral->getVar('npc') >= 2 && Util::randBool(0.01)){
|
||||
|
||||
@@ -83,7 +83,7 @@ class che_포상 extends Command\NationCommand{
|
||||
$this->runnableConstraints[] = ConstraintHelper::ReqNationGold(1);
|
||||
}
|
||||
else{
|
||||
$this->runnableConstraints[] = ConstraintHelper::ReqGeneralRice(1+GameConst::$baserice);
|
||||
$this->runnableConstraints[] = ConstraintHelper::ReqNationRice(1+GameConst::$baserice);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -119,7 +119,7 @@ class che_포상 extends Command\NationCommand{
|
||||
$resName = $isGold?'금':'쌀';
|
||||
$destGeneral = $this->destGeneralObj;
|
||||
|
||||
$amount = Util::valueFit($amount, 0, $nation[$resKey]);
|
||||
$amount = Util::valueFit($amount, 0, $nation[$resKey] - ($isGold?GameConst::$basegold:GameConst::$baserice));
|
||||
$amountText = number_format($amount, 0);
|
||||
|
||||
$logger = $general->getLogger();
|
||||
|
||||
Reference in New Issue
Block a user