현재까지 작업물 보강, 모.징병 페이지 개선 중

This commit is contained in:
Hide_D committed 2018-07-14 18:17:37 +09:00
1 parent 4ebd2ba5dc
commit c2c4c63542
3 files changed
+128 -140

No files matched your search

+4
View File
@@ -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;