MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / setDamagePattern

Method setDamagePattern

service/fit.py:431–440  ·  view source on GitHub ↗
(self, fitID, pattern)

Source from the content-addressed store, hash-verified

429 return fit.damagePattern
430
431 def setDamagePattern(self, fitID, pattern):
432 pyfalog.debug("Set damage pattern for fit ID: {0}", fitID)
433 if fitID is None:
434 return
435
436 fit = eos.db.getFit(fitID)
437 fit.damagePattern = self.pattern = pattern
438 eos.db.commit()
439
440 self.recalc(fit)
441
442 def setAsPattern(self, fitID, ammo):
443 pyfalog.debug("Set as pattern for fit ID: {0}", fitID)

Callers 1

handlePatternSwitchMethod · 0.80

Calls 2

recalcMethod · 0.95
getFitMethod · 0.80

Tested by

no test coverage detected