Added unique to current IntEnums
Renamed PortMultiBuyItemType to PortMultiBuyOptions
This commit is contained in:
@@ -19,14 +19,14 @@
|
||||
|
||||
|
||||
from enum import Enum
|
||||
from eos.const import PortMultiBuyItemType
|
||||
from eos.const import PortMultiBuyOptions
|
||||
|
||||
|
||||
|
||||
MULTIBUY_OPTIONS = (
|
||||
(PortMultiBuyItemType.LOADED_CHARGES.value, 'Loaded Charges', 'Export charges loaded into modules', True),
|
||||
(PortMultiBuyItemType.IMPLANTS.value, 'Implants && Boosters', 'Export implants and boosters', False),
|
||||
(PortMultiBuyItemType.CARGO.value, 'Cargo', 'Export cargo contents', True),
|
||||
(PortMultiBuyOptions.LOADED_CHARGES.value, 'Loaded Charges', 'Export charges loaded into modules', True),
|
||||
(PortMultiBuyOptions.IMPLANTS.value, 'Implants && Boosters', 'Export implants and boosters', False),
|
||||
(PortMultiBuyOptions.CARGO.value, 'Cargo', 'Export cargo contents', True),
|
||||
)
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ def exportMultiBuy(fit, options):
|
||||
if module.isMutated:
|
||||
continue
|
||||
addItem(module.item)
|
||||
if module.charge and options[PortMultiBuyItemType.LOADED_CHARGES.value]:
|
||||
if module.charge and options[PortMultiBuyOptions.LOADED_CHARGES.value]:
|
||||
addItem(module.charge, module.numCharges)
|
||||
|
||||
for drone in fit.drones:
|
||||
@@ -53,11 +53,11 @@ def exportMultiBuy(fit, options):
|
||||
for fighter in fit.fighters:
|
||||
addItem(fighter.item, fighter.amountActive)
|
||||
|
||||
if options[PortMultiBuyItemType.CARGO.value]:
|
||||
if options[PortMultiBuyOptions.CARGO.value]:
|
||||
for cargo in fit.cargo:
|
||||
addItem(cargo.item, cargo.amount)
|
||||
|
||||
if options[PortMultiBuyItemType.IMPLANTS.value]:
|
||||
if options[PortMultiBuyOptions.IMPLANTS.value]:
|
||||
for implant in fit.implants:
|
||||
addItem(implant.item)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user