현재까지 작업물 보강, 모.징병 페이지 개선 중
This commit is contained in:
1 parent
4ebd2ba5dc
commit
c2c4c63542
3 files changed
+128
-140
No files matched your search
@@ -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