(self)
| 1369 | |
| 1370 | @property |
| 1371 | def maxWarpDistance(self): |
| 1372 | capacity = self.ship.getModifiedItemAttr("capacitorCapacity") |
| 1373 | mass = self.ship.getModifiedItemAttr("mass") |
| 1374 | warpCapNeed = self.ship.getModifiedItemAttr("warpCapacitorNeed") |
| 1375 | |
| 1376 | if not warpCapNeed: |
| 1377 | return 0 |
| 1378 | |
| 1379 | return capacity / (mass * warpCapNeed) |
| 1380 | |
| 1381 | @property |
| 1382 | def capStable(self): |
nothing calls this directly
no test coverage detected