Merge branch 'master' into py3EFFS

This commit is contained in:
Maru Maru
2018-07-11 02:23:01 -04:00
6 changed files with 12 additions and 5 deletions

View File

@@ -1,6 +1,8 @@
# skillBonusDroneDurability
#
# Used by:
# Implant: CreoDron 'Bumblebee' Drone Tuner T10-5D
# Implant: CreoDron 'Yellowjacket' Drone Tuner D5-10T
# Skill: Drone Durability
type = "passive"

View File

@@ -1,6 +1,8 @@
# skillBonusDroneInterfacing
#
# Used by:
# Implant: CreoDron 'Bumblebee' Drone Tuner T10-5D
# Implant: CreoDron 'Yellowjacket' Drone Tuner D5-10T
# Skill: Drone Interfacing
type = "passive"

View File

@@ -6,7 +6,7 @@ type = "passive"
def handler(fit, src, context):
lvl = src.level
lvl = src.level if "skill" in context else 1
fit.drones.filteredItemBoost(lambda mod: mod.item.requiresSkill("Drones"), "maxVelocity",
src.getModifiedItemAttr("maxVelocityBonus") * lvl)
fit.fighters.filteredItemBoost(lambda mod: mod.item.requiresSkill("Fighters"), "maxVelocity",

View File

@@ -6,7 +6,7 @@ type = "passive"
def handler(fit, src, context):
lvl = src.level
lvl = src.level if "skill" in context else 1
fit.drones.filteredItemBoost(lambda mod: mod.item.requiresSkill("Drones"), "maxRange",
src.getModifiedItemAttr("rangeSkillBonus") * lvl)
fit.fighters.filteredItemBoost(lambda mod: mod.item.requiresSkill("Fighters"), "fighterAbilityMissilesRange",

View File

@@ -125,6 +125,12 @@ class Character(object):
return all0
def apiUpdateCharSheet(self, skills, secStatus=0.00):
self.clearSkills()
for skillRow in skills:
self.addSkill(Skill(self, skillRow["typeID"], skillRow["level"]))
self.secStatus = float(secStatus)
def clearSkills(self):
del self.__skills[:]
self.__skillIdMap.clear()

View File

@@ -51,9 +51,6 @@ class CharacterImportThread(threading.Thread):
self.callback = callback
def run(self):
wx.CallAfter(self.callback)
# todo: Fix character import (don't need CCP SML anymore, only support evemon?)
return
paths = self.paths
sCharacter = Character.getInstance()
all5_character = es_Character("All 5", 5)