Remove drifter weapons from search results
This commit is contained in:
@@ -597,7 +597,9 @@ def update_db():
|
||||
attr.value = 4.0
|
||||
for item in eos.db.gamedata_session.query(eos.gamedata.Item).filter(or_(
|
||||
eos.gamedata.Item.name.like('%abyssal%'),
|
||||
eos.gamedata.Item.name.like('%mutated%')
|
||||
eos.gamedata.Item.name.like('%mutated%'),
|
||||
# Drifter weapons are published for some reason
|
||||
eos.gamedata.Item.name.in_(('Lux Kontos', 'Lux Xiphos'))
|
||||
)).all():
|
||||
if 'Asteroid Mining Crystal' in item.name:
|
||||
continue
|
||||
|
||||
@@ -654,6 +654,8 @@ class Module(HandledItem, HandledCharge, ItemAttrShortcut, ChargeAttrShortcut, M
|
||||
"""
|
||||
|
||||
slot = self.slot
|
||||
if slot is None:
|
||||
return False
|
||||
if fit.getSlotsFree(slot) <= (0 if self.owner != fit else -1):
|
||||
return False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user