Skip to content

Commit

Permalink
Remove drifter weapons from search results
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkFenX committed Feb 4, 2022
1 parent 6601864 commit c459cbb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion db_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,9 @@ def processImplantSets(eveTypesData):
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
Expand Down
2 changes: 2 additions & 0 deletions eos/saveddata/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,8 @@ def fits(self, fit, hardpointLimit=True):
"""

slot = self.slot
if slot is None:
return False
if fit.getSlotsFree(slot) <= (0 if self.owner != fit else -1):
return False

Expand Down

0 comments on commit c459cbb

Please sign in to comment.