Try loading item as a booster if implant fails.
This commit is contained in:
@@ -406,7 +406,11 @@ class Port(object):
|
|||||||
cargoMap[modName] = 0
|
cargoMap[modName] = 0
|
||||||
cargoMap[modName] += extraAmount
|
cargoMap[modName] += extraAmount
|
||||||
elif item.category.name == "Implant":
|
elif item.category.name == "Implant":
|
||||||
fit.implants.append(Implant(item))
|
try:
|
||||||
|
fit.implants.append(Implant(item))
|
||||||
|
except ValueError:
|
||||||
|
# Passed item isn't an implant. Try loading it as a booster.
|
||||||
|
fit.boosters.append(Booster(item))
|
||||||
# elif item.category.name == "Subsystem":
|
# elif item.category.name == "Subsystem":
|
||||||
# try:
|
# try:
|
||||||
# subsystem = Module(item)
|
# subsystem = Module(item)
|
||||||
|
|||||||
Reference in New Issue
Block a user