13 lines
471 B
Python
13 lines
471 B
Python
# Module-state logic shared by port (EFT import) and gui (fit commands).
|
|
# Uses gamedata (item type + attributes), no hardcoded effect names.
|
|
|
|
from eos.const import FittingModuleState
|
|
from service.market import Market
|
|
|
|
|
|
def activeStateLimit(itemIdentity):
|
|
item = Market.getInstance().getItem(itemIdentity)
|
|
if not item.isType("active") or item.getAttribute("activationBlocked", 0) > 0:
|
|
return FittingModuleState.ONLINE
|
|
return FittingModuleState.ACTIVE
|