If in debug, publish ship mode items (makes it easy to find in market and look at stats).
Tweak effectsUsedBy.py to publish all modes in group rather than individually listing them.
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user