MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / droneStackLimit

Function droneStackLimit

gui/fitCommands/helpers.py:365–370  ·  view source on GitHub ↗
(fit, itemIdentity)

Source from the content-addressed store, hash-verified

363
364
365def droneStackLimit(fit, itemIdentity):
366 item = Market.getInstance().getItem(itemIdentity)
367 hardLimit = max(5, fit.extraAttributes["maxActiveDrones"])
368 releaseLimit = fit.getReleaseLimitForDrone(item)
369 limit = min(hardLimit, releaseLimit if releaseLimit > 0 else math.inf)
370 return limit
371
372
373def restoreCheckedStates(fit, stateInfo, ignoreModPoss=()):

Callers 3

displayMethod · 0.90
addItemMethod · 0.90
DoMethod · 0.90

Calls 3

getItemMethod · 0.80
getInstanceMethod · 0.45

Tested by

no test coverage detected