Ensure that we load all skills for a character and some minor tweaks.

This commit is contained in:
blitzmann
2014-05-29 00:31:59 -04:00
parent 0d1c7b93be
commit de9ae5c78c
3 changed files with 8 additions and 9 deletions

View File

@@ -87,6 +87,7 @@ class Character(object):
all0 = eos.db.getCharacter("All 0")
if all0 is None:
all0 = Character("All 0")
all0.defaultLevel = None
eos.db.add(all0)
cls.__all0 = all0
@@ -173,12 +174,6 @@ class Character(object):
return self.__implants
def iterSkills(self):
if self.defaultLevel is not None:
return self.iterDefaultLevel()
else:
return self.__skills.__iter__()
def iterDefaultLevel(self):
for item in self.getSkillList():
yield self.getSkill(item)

View File

@@ -1246,8 +1246,11 @@ class Fit(object):
for attr in ("shieldRepair", "armorRepair", "hullRepair"):
sustainable[attr] = self.extraAttributes[attr]
dict = self.extraAttributes.getAfflictions(attr)
print dict
if self in dict:
for mod, _, amount in dict[self]:
for mod, _, amount, used in dict[self]:
if not used:
continue
if mod.projected is False:
usesCap = True
try: