현재까지 작업물 보강, 모.징병 페이지 개선 중
This commit is contained in:
@@ -48,6 +48,10 @@ class GameUnitDetail{
|
||||
$this->info = $info;
|
||||
}
|
||||
|
||||
public function costWithTech(int $tech, int $crew=100):float{
|
||||
return $this->cost * getTechCost($tech) * $crew / 100;
|
||||
}
|
||||
|
||||
public function isValid($ownCities, $ownRegions, $relativeYear, $tech){
|
||||
if($relativeYear < $this->reqYear){
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user