Remove drifter weapons from search results

This commit is contained in:
DarkPhoenix
2022-02-05 02:11:39 +03:00
parent 66018642f7
commit c459cbbc92
2 changed files with 5 additions and 1 deletions

View File

@@ -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

View File

@@ -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