Free used subsystem slot before we add another subsystem if the slot is
in use
This commit is contained in:
2
eos
2
eos
Submodule eos updated: be10e9956c...5b7f8eaf71
@@ -168,7 +168,11 @@ class Fit(object):
|
||||
except ValueError:
|
||||
return False
|
||||
|
||||
if m.item.category.name == "Subsystem":
|
||||
fit.modules.freeSlot(m.getModifiedItemAttr("subSystemSlot"))
|
||||
|
||||
if m.fits(fit):
|
||||
|
||||
numSlots = len(fit.modules)
|
||||
fit.modules.append(m)
|
||||
if m.isValidState(State.ACTIVE):
|
||||
|
||||
Reference in New Issue
Block a user