Fix issue with inability to right-click user-defined target profiles in graph window

This commit is contained in:
DarkPhoenix
2019-12-07 02:47:24 +03:00
parent d8cd3197b5
commit 9787a18666
2 changed files with 11 additions and 0 deletions

View File

@@ -20,6 +20,8 @@
import re
from collections import OrderedDict
from sqlalchemy.orm import reconstructor
import eos.db
@@ -126,6 +128,10 @@ class DamagePattern:
self.builtin = False
self.update(*args, **kwargs)
@reconstructor
def init(self):
self.builtin = False
def update(self, emAmount=25, thermalAmount=25, kineticAmount=25, explosiveAmount=25):
self.emAmount = emAmount
self.thermalAmount = thermalAmount

View File

@@ -22,6 +22,7 @@ import re
from collections import OrderedDict
from logbook import Logger
from sqlalchemy.orm import reconstructor
import eos.db
@@ -95,6 +96,10 @@ class TargetProfile:
self.builtin = False
self.update(*args, **kwargs)
@reconstructor
def init(self):
self.builtin = False
def update(self, emAmount=0, thermalAmount=0, kineticAmount=0, explosiveAmount=0, maxVelocity=None, signatureRadius=None, radius=None):
self.emAmount = emAmount
self.thermalAmount = thermalAmount