fitting.py (3555B)
1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\eve\common\script\dogma\fitting.py 2 from dogma.effects import Effect 3 4 class LauncherFittedEffect(Effect): 5 __guid__ = 'dogmaXP.LauncherFittedEffect' 6 __effectIDs__ = ['effectLauncherFitted'] 7 8 def Start(self, env, dogmaLM, itemID, shipID, charID, otherID, targetID): 9 dogmaLM.AddModifier(const.dgmAssModSub, shipID, const.attributeLauncherSlotsLeft, itemID, const.attributeSlots) 10 11 def Stop(self, env, dogmaLM, itemID, shipID, charID, otherID, targetID): 12 dogmaLM.RemoveModifier(const.dgmAssModSub, shipID, const.attributeLauncherSlotsLeft, itemID, const.attributeSlots) 13 14 def RestrictedStop(self, env, dogmaLM, itemID, shipID, charID, otherID, targetID): 15 dogmaLM.RemoveModifier(const.dgmAssModSub, shipID, const.attributeLauncherSlotsLeft, itemID, const.attributeSlots) 16 17 18 class TurretFittedEffect(Effect): 19 __guid__ = 'dogmaXP.TurretFittedEffect' 20 __effectIDs__ = ['effectTurretFitted'] 21 22 def Start(self, env, dogmaLM, itemID, shipID, charID, otherID, targetID): 23 dogmaLM.AddModifier(const.dgmAssModSub, shipID, const.attributeTurretSlotsLeft, itemID, const.attributeSlots) 24 25 def Stop(self, env, dogmaLM, itemID, shipID, charID, otherID, targetID): 26 dogmaLM.RemoveModifier(const.dgmAssModSub, shipID, const.attributeTurretSlotsLeft, itemID, const.attributeSlots) 27 28 def RestrictedStop(self, env, dogmaLM, itemID, shipID, charID, otherID, targetID): 29 dogmaLM.RemoveModifier(const.dgmAssModSub, shipID, const.attributeTurretSlotsLeft, itemID, const.attributeSlots) 30 31 32 class UpgradeFittedEffect(Effect): 33 __guid__ = 'dogmaXP.UpgradeFittedEffect' 34 __effectIDs__ = ['effectRigSlot'] 35 36 def Start(self, env, dogmaLM, itemID, shipID, charID, otherID, targetID): 37 dogmaLM.AddModifier(const.dgmAssModSub, shipID, const.attributeUpgradeSlotsLeft, itemID, const.attributeSlots) 38 dogmaLM.AddModifier(const.dgmAssModAdd, shipID, const.attributeUpgradeLoad, itemID, const.attributeUpgradeCost) 39 40 def Stop(self, env, dogmaLM, itemID, shipID, charID, otherID, targetID): 41 dogmaLM.RemoveModifier(const.dgmAssModSub, shipID, const.attributeUpgradeSlotsLeft, itemID, const.attributeSlots) 42 dogmaLM.RemoveModifier(const.dgmAssModAdd, shipID, const.attributeUpgradeLoad, itemID, const.attributeUpgradeCost) 43 44 def RestrictedStop(self, env, dogmaLM, itemID, shipID, charID, otherID, targetID): 45 dogmaLM.RemoveModifier(const.dgmAssModSub, shipID, const.attributeUpgradeSlotsLeft, itemID, const.attributeSlots) 46 dogmaLM.RemoveModifier(const.dgmAssModAdd, shipID, const.attributeUpgradeLoad, itemID, const.attributeUpgradeCost) 47 48 49 class SubSystemFittedEffect(Effect): 50 __guid__ = 'dogmaXP.SubSystemFittedEffect' 51 __effectIDs__ = ['effectSubSystem'] 52 53 def Start(self, env, dogmaLM, itemID, shipID, charID, otherID, targetID): 54 return 1 55 56 def Stop(self, env, dogmaLM, itemID, shipID, charID, otherID, targetID): 57 return 1 58 59 def RestrictedStop(self, env, dogmaLM, itemID, shipID, charID, otherID, targetID): 60 return 1 61 62 63 class ServiceSlotFittedEffect(Effect): 64 __guid__ = 'dogmaXP.ServiceSlotFittedEffect' 65 __effectIDs__ = ['effectServiceSlot'] 66 67 def Start(self, env, dogmaLM, itemID, shipID, charID, otherID, targetID): 68 return 1 69 70 def Stop(self, env, dogmaLM, itemID, shipID, charID, otherID, targetID): 71 return 1 72 73 def RestrictedStop(self, env, dogmaLM, itemID, shipID, charID, otherID, targetID): 74 return 1