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:
blitzmann
2015-02-03 14:14:45 -05:00
parent c861adc5ed
commit 3a26790109
2 changed files with 13 additions and 4 deletions

View File

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