relativeYear에 음수 불가
This commit is contained in:
@@ -156,6 +156,9 @@ class GameUnitDetail{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function isValid($ownCities, $ownRegions, $relativeYear, $tech){
|
public function isValid($ownCities, $ownRegions, $relativeYear, $tech){
|
||||||
|
//음수 없음
|
||||||
|
$relativeYear = max(0, $relativeYear);
|
||||||
|
|
||||||
if($relativeYear < $this->reqYear){
|
if($relativeYear < $this->reqYear){
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user