NovaBryan/EVE_Dump
Log | Files | 📦 下载最新源码 (.zip) | Refs | README

moduleDogmaItem.py (659B)


      1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\packages\dogma\items\moduleDogmaItem.py
      2 from __future__ import absolute_import
      3 from .fittableDogmaItem import FittableDogmaItem
      4 from utillib import KeyVal
      5 import dogma.const as dgmconst
      6 
      7 class ModuleDogmaItem(FittableDogmaItem):
      8 
      9     def GetCharacterID(self):
     10         return self.GetPilot()
     11 
     12     def IsOnline(self):
     13         return dgmconst.effectOnline in self.activeEffects
     14 
     15     def IsValidFittingLocation(self, location):
     16         return location.categoryID == const.categoryShip
     17 
     18 
     19 class GhostModuleDogmaItem(ModuleDogmaItem):
     20 
     21     def GetPilot(self):
     22         return session.charid