Fixed method naming in stats.py classes

This commit is contained in:
Gochim
2019-11-11 19:19:31 +02:00
parent 7a58d97652
commit 386e05be8f
3 changed files with 20 additions and 20 deletions

View File

@@ -110,12 +110,12 @@ class DmgTypes:
return self
def __repr__(self):
spec = DmgTypes.Names()
spec = DmgTypes.names()
spec.append('total')
return makeReprStr(self, spec)
@staticmethod
def Names(short=None, postProcessor=None):
def names(short=None, postProcessor=None):
value = ['em', 'th', 'kin', 'exp'] if short else ['em', 'thermal', 'kinetic', 'explosive']
if postProcessor:
@@ -201,11 +201,11 @@ class RRTypes:
return self
def __repr__(self):
spec = RRTypes.Names(False)
spec = RRTypes.names(False)
return makeReprStr(self, spec)
@staticmethod
def Names(ehpOnly=True, postProcessor=None):
def names(ehpOnly=True, postProcessor=None):
value = ['shield', 'armor', 'hull']
if not ehpOnly: