Do not include rigs in skill requirement checks

This commit is contained in:
blitzmann
2014-12-30 21:08:55 -05:00
parent 71bf1556a1
commit 18c86daea6

View File

@@ -301,9 +301,12 @@ class Character(object):
return char.implants
def checkRequirements(self, fit):
toCheck = []
reqs = {}
for thing in itertools.chain(fit.modules, fit.drones, (fit.ship,)):
slot = getattr(thing, "slot", None)
if slot == eos.types.Slot.RIG:
# Do not include rigs in requirement checks
continue
for attr in ("item", "charge"):
subThing = getattr(thing, attr, None)
subReqs = {}