징병 폼 완료

This commit is contained in:
Hide_D committed 2020-03-05 21:53:37 +09:00
1 parent 12529b2c41
commit 4abf43e0ca
5 files changed
+66 -70

No files matched your search

+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;
}