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

This commit is contained in:
2018-07-14 18:17:37 +09:00
parent ed75f39094
commit 0a98c71dfe
3 changed files with 128 additions and 140 deletions
+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;