MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / addImplant

Method addImplant

service/character.py:434–443  ·  view source on GitHub ↗
(charID, itemID)

Source from the content-addressed store, hash-verified

432
433 @staticmethod
434 def addImplant(charID, itemID):
435 char = eos.db.getCharacter(charID)
436 if char.ro:
437 pyfalog.error("Trying to add implant to read-only character")
438 return
439
440 implant = es_Implant(eos.db.getItem(itemID))
441 char.implants.makeRoom(implant)
442 char.implants.append(implant)
443 eos.db.commit()
444
445 @staticmethod
446 def removeImplant(charID, implant):

Callers 2

addImplantToContextMethod · 0.45
addImplantsMethod · 0.45

Calls 4

getCharacterMethod · 0.80
getItemMethod · 0.80
makeRoomMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected