Proof of concept. Need to save overrides in user database and create GUI for it. May be difficult to collect and apply considering the Item container is attached to the eve db and not the user.

This commit is contained in:
blitzmann
2015-10-31 16:53:20 -04:00
parent d73c53cb10
commit f432b08149
2 changed files with 9 additions and 0 deletions

View File

@@ -183,6 +183,15 @@ class Item(EqBase):
attr.info = info
attr.value = val
self.__attributes[info.name] = attr
try:
self.__overrides = __import__('overrides.' + str(self.ID), fromlist=True)
except ImportError:
self.__overrides = None
if self.__overrides:
for key in dir(self.__overrides):
if key in self.__attributes:
self.__attributes[key] = getattr(self.__overrides, key)
@reconstructor
def init(self):

0
overrides/__init__.py Normal file
View File