전투태세, 첩보 추가, 기존 코드 일부 정리
This commit is contained in:
@@ -4,7 +4,7 @@ namespace sammo\Constraint;
|
||||
use sammo\GameConst;
|
||||
|
||||
class ReqGeneralAtmosMargin extends Constraint{
|
||||
const REQ_VALUES = Constraint::REQ_GENERAL;
|
||||
const REQ_VALUES = Constraint::REQ_GENERAL|Constraint::REQ_INT_ARG;
|
||||
|
||||
public function checkInputValues(bool $throwExeception=true){
|
||||
if(!parent::checkInputValues($throwExeception) && !$throwException){
|
||||
@@ -23,7 +23,7 @@ class ReqGeneralAtmosMargin extends Constraint{
|
||||
$this->checkInputValues();
|
||||
$this->tested = true;
|
||||
|
||||
if($this->general['atmos'] < GameConst::$maxAtmosByCommand){
|
||||
if($this->general['atmos'] < $this->arg){
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user