징병 폼 완료

This commit is contained in:
2020-03-05 21:53:37 +09:00
parent 12529b2c41
commit 4abf43e0ca
5 changed files with 66 additions and 70 deletions
+4
View File
@@ -75,6 +75,10 @@ class GameUnitDetail implements iAction{
return StringUtil::subStringForWidth($this->name, 0, 4);
}
public function riceWithTech(int $tech, int $crew=100):float{
return $this->rice * getTechCost($tech) * $crew / 100;
}
public function costWithTech(int $tech, int $crew=100):float{
return $this->cost * getTechCost($tech) * $crew / 100;
}