diff --git a/scripts/effectUsedBy.py b/scripts/effectUsedBy.py index 0bb865b3c..b9ee818b9 100755 --- a/scripts/effectUsedBy.py +++ b/scripts/effectUsedBy.py @@ -135,13 +135,12 @@ db = sqlite3.connect(os.path.expanduser(options.database)) cursor = db.cursor() # Force some of the items to make them published -FORCEPUB_TYPES = ("Ibis", "Impairor", "Velator", "Reaper", - "Amarr Tactical Destroyer Propulsion Mode", - "Amarr Tactical Destroyer Sharpshooter Mode", - "Amarr Tactical Destroyer Defense Mode") +FORCEPUB_TYPES = ("Ibis", "Impairor", "Velator", "Reaper") OVERRIDES_TYPEPUB = 'UPDATE invtypes SET published = 1 WHERE typeName = ?' for typename in FORCEPUB_TYPES: cursor.execute(OVERRIDES_TYPEPUB, (typename,)) +# Publish t3 Dessy Modes +cursor.execute("UPDATE invtypes SET published = 1 WHERE groupID = ?", (1306,)) # Queries to get raw data QUERY_ALLEFFECTS = 'SELECT effectID, effectName FROM dgmeffects' diff --git a/service/market.py b/service/market.py index f7b4b2666..c3c463494 100644 --- a/service/market.py +++ b/service/market.py @@ -23,6 +23,7 @@ import wx import Queue +import config import eos.db import eos.types from service.settings import SettingsProvider, NetworkSettings @@ -233,6 +234,15 @@ class Market(): for name in conversions.packs['skinnedShips']: self.ITEMS_FORCEPUBLISHED[name] = False + if config.debug: + # Publish Tactical Dessy Modes if in debug + # Cannot use GROUPS_FORCEPUBLISHED as this does not force items + # within group to be published, but rather for the group itself + # to show up on ship list + group = self.getGroup("Ship Modifiers", eager="items") + for item in group.items: + self.ITEMS_FORCEPUBLISHED[item.name] = True + # List of groups which are forcibly published self.GROUPS_FORCEPUBLISHED = { "Prototype Exploration Ship": False } # We moved the only ship from this group to other group anyway