코드 중간 반영
This commit is contained in:
@@ -58,6 +58,10 @@ class GameUnitDetail{
|
||||
$this->info = $info;
|
||||
}
|
||||
|
||||
public function getShortName():string{
|
||||
return StringUtil::subStringForWidth($this->name, 0, 4);
|
||||
}
|
||||
|
||||
public function costWithTech(int $tech, int $crew=100):float{
|
||||
return $this->cost * getTechCost($tech) * $crew / 100;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user