@@ -972,7 +972,7 @@ discard block |
||
| 972 | 972 | /** |
| 973 | 973 | * Set current resource list from array of units |
| 974 | 974 | * |
| 975 | - * @param array $resource_list |
|
| 975 | + * @param integer[] $resource_list |
|
| 976 | 976 | */ |
| 977 | 977 | public function resourcesSet($resource_list) { |
| 978 | 978 | if (!empty($this->propertiesAdjusted['resource_list'])) { |
@@ -1020,7 +1020,7 @@ discard block |
||
| 1020 | 1020 | } |
| 1021 | 1021 | |
| 1022 | 1022 | /** |
| 1023 | - * @param array $rate |
|
| 1023 | + * @param integer[] $rate |
|
| 1024 | 1024 | * |
| 1025 | 1025 | * @return float |
| 1026 | 1026 | */ |
@@ -1051,7 +1051,6 @@ discard block |
||
| 1051 | 1051 | * Restores fleet or resources to planet |
| 1052 | 1052 | * |
| 1053 | 1053 | * @param bool $start |
| 1054 | - * @param bool $only_resources |
|
| 1055 | 1054 | * @param int $result |
| 1056 | 1055 | * |
| 1057 | 1056 | * @return int |
@@ -1205,6 +1204,9 @@ discard block |
||
| 1205 | 1204 | } |
| 1206 | 1205 | |
| 1207 | 1206 | |
| 1207 | + /** |
|
| 1208 | + * @param integer $missionStartTimeStamp |
|
| 1209 | + */ |
|
| 1208 | 1210 | protected function renderFleetCoordinates($missionStartTimeStamp = SN_TIME_NOW, $timeMissionJob = 0) { |
| 1209 | 1211 | $timeToReturn = $this->travelData['duration'] * 2 + $timeMissionJob; |
| 1210 | 1212 | |
@@ -190,8 +190,8 @@ |
||
| 190 | 190 | |
| 191 | 191 | |
| 192 | 192 | /** |
| 193 | - * @return bool |
|
| 194 | - */ |
|
| 193 | + * @return bool |
|
| 194 | + */ |
|
| 195 | 195 | protected function checkEnoughCapacity($includeResources = true) { |
| 196 | 196 | $checkVia = $this->fleet->travelData['consumption']; |
| 197 | 197 | $checkVia = ceil(($includeResources ? array_sum($this->fleet->resource_list) : 0) + $checkVia); |