migratedeffects.py (11661B)
1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\eve\common\script\dogma\pythonEffects\migratedeffects.py 2 from dogma.effects import Effect 3 from dogma.const import * 4 5 class MissileEMDmgBonus(Effect): 6 __guid__ = 'dogmaXP.MissileEMDmgBonus' 7 __effectIDs__ = [660] 8 isPythonEffect = True 9 __modifies_character__ = True 10 __modifies_ship__ = True 11 modifyingAttributeID = attributeDamageMultiplierBonus 12 modifiedAttributeID = attributeEmDamage 13 operation = dgmAssPostPercent 14 15 def Start(self, env, dogmaLM, itemID, shipID, charID, otherID, targetID): 16 affectedSkillID = env.itemTypeID 17 affectingModuleID = env.itemID 18 env.dogmaLM.AddOwnerRequiredSkillModifier(self.operation, charID, affectedSkillID, self.modifiedAttributeID, affectingModuleID, self.modifyingAttributeID) 19 20 def Stop(self, env, dogmaLM, itemID, shipID, charID, otherID, targetID): 21 affectedSkillID = env.itemTypeID 22 affectingModuleID = env.itemID 23 env.dogmaLM.RemoveOwnerRequiredSkillModifier(self.operation, charID, affectedSkillID, self.modifiedAttributeID, affectingModuleID, self.modifyingAttributeID) 24 25 def RestrictedStop(self, env, dogmaLM, itemID, shipID, charID, otherID, targetID): 26 affectedSkillID = env.itemTypeID 27 affectingModuleID = env.itemID 28 env.dogmaLM.RemoveOwnerRequiredSkillModifier(self.operation, charID, affectedSkillID, self.modifiedAttributeID, affectingModuleID, self.modifyingAttributeID) 29 30 31 class MissileExplosiveDmgBonus(Effect): 32 __guid__ = 'dogmaXP.MissileExplosiveDmgBonus' 33 __effectIDs__ = [661] 34 isPythonEffect = True 35 __modifies_character__ = True 36 __modifies_ship__ = True 37 modifyingAttributeID = attributeDamageMultiplierBonus 38 modifiedAttributeID = attributeExplosiveDamage 39 operation = dgmAssPostPercent 40 41 def Start(self, env, dogmaLM, itemID, shipID, charID, otherID, targetID): 42 affectedSkillID = env.itemTypeID 43 affectingModuleID = env.itemID 44 env.dogmaLM.AddOwnerRequiredSkillModifier(self.operation, charID, affectedSkillID, self.modifiedAttributeID, affectingModuleID, self.modifyingAttributeID) 45 46 def Stop(self, env, dogmaLM, itemID, shipID, charID, otherID, targetID): 47 affectedSkillID = env.itemTypeID 48 affectingModuleID = env.itemID 49 env.dogmaLM.RemoveOwnerRequiredSkillModifier(self.operation, charID, affectedSkillID, self.modifiedAttributeID, affectingModuleID, self.modifyingAttributeID) 50 51 def RestrictedStop(self, env, dogmaLM, itemID, shipID, charID, otherID, targetID): 52 affectedSkillID = env.itemTypeID 53 affectingModuleID = env.itemID 54 env.dogmaLM.RemoveOwnerRequiredSkillModifier(self.operation, charID, affectedSkillID, self.modifiedAttributeID, affectingModuleID, self.modifyingAttributeID) 55 56 57 class MissileThermalDmgBonus(Effect): 58 __guid__ = 'dogmaXP.MissileThermalDmgBonus' 59 __effectIDs__ = [662] 60 isPythonEffect = True 61 __modifies_character__ = True 62 __modifies_ship__ = True 63 modifyingAttributeID = attributeDamageMultiplierBonus 64 modifiedAttributeID = attributeThermalDamage 65 operation = dgmAssPostPercent 66 67 def Start(self, env, dogmaLM, itemID, shipID, charID, otherID, targetID): 68 affectedSkillID = env.itemTypeID 69 affectingModuleID = env.itemID 70 env.dogmaLM.AddOwnerRequiredSkillModifier(self.operation, charID, affectedSkillID, self.modifiedAttributeID, affectingModuleID, self.modifyingAttributeID) 71 72 def Stop(self, env, dogmaLM, itemID, shipID, charID, otherID, targetID): 73 affectedSkillID = env.itemTypeID 74 affectingModuleID = env.itemID 75 env.dogmaLM.RemoveOwnerRequiredSkillModifier(self.operation, charID, affectedSkillID, self.modifiedAttributeID, affectingModuleID, self.modifyingAttributeID) 76 77 def RestrictedStop(self, env, dogmaLM, itemID, shipID, charID, otherID, targetID): 78 affectedSkillID = env.itemTypeID 79 affectingModuleID = env.itemID 80 env.dogmaLM.RemoveOwnerRequiredSkillModifier(self.operation, charID, affectedSkillID, self.modifiedAttributeID, affectingModuleID, self.modifyingAttributeID) 81 82 83 class MissileKineticDmgBonus2(Effect): 84 __guid__ = 'dogmaXP.MissileKineticDmgBonus2' 85 __effectIDs__ = [668] 86 isPythonEffect = True 87 __modifies_character__ = True 88 __modifies_ship__ = True 89 modifyingAttributeID = attributeDamageMultiplierBonus 90 modifiedAttributeID = attributeKineticDamage 91 operation = dgmAssPostPercent 92 93 def Start(self, env, dogmaLM, itemID, shipID, charID, otherID, targetID): 94 affectedSkillID = env.itemTypeID 95 affectingModuleID = env.itemID 96 env.dogmaLM.AddOwnerRequiredSkillModifier(self.operation, charID, affectedSkillID, self.modifiedAttributeID, affectingModuleID, self.modifyingAttributeID) 97 98 def Stop(self, env, dogmaLM, itemID, shipID, charID, otherID, targetID): 99 affectedSkillID = env.itemTypeID 100 affectingModuleID = env.itemID 101 env.dogmaLM.RemoveOwnerRequiredSkillModifier(self.operation, charID, affectedSkillID, self.modifiedAttributeID, affectingModuleID, self.modifyingAttributeID) 102 103 def RestrictedStop(self, env, dogmaLM, itemID, shipID, charID, otherID, targetID): 104 affectedSkillID = env.itemTypeID 105 affectingModuleID = env.itemID 106 env.dogmaLM.RemoveOwnerRequiredSkillModifier(self.operation, charID, affectedSkillID, self.modifiedAttributeID, affectingModuleID, self.modifyingAttributeID) 107 108 109 class CloakingTargetingDelayBonusPostPercentCloakingTargetingDelayBonusForShipModulesRequiringCloaking(Effect): 110 __guid__ = 'dogmaXP.CloakingTargetingDelayBonusPostPercentCloakingTargetingDelayBonusForShipModulesRequiringCloaking' 111 __effectIDs__ = [848] 112 isPythonEffect = True 113 __modifier_only__ = True 114 __modifies_ship__ = True 115 modifyingAttributeID = attributeCloakingTargetingDelayBonus 116 modifiedAttributeID = attributeCloakingTargetingDelay 117 operation = dgmAssPostPercent 118 119 def Start(self, env, dogmaLM, itemID, shipID, charID, otherID, targetID): 120 affectedSkillID = env.itemTypeID 121 affectingModuleID = env.itemID 122 env.dogmaLM.AddLocationRequiredSkillModifier(self.operation, shipID, affectedSkillID, self.modifiedAttributeID, affectingModuleID, self.modifyingAttributeID) 123 124 def Stop(self, env, dogmaLM, itemID, shipID, charID, otherID, targetID): 125 affectedSkillID = env.itemTypeID 126 affectingModuleID = env.itemID 127 env.dogmaLM.RemoveLocationRequiredSkillModifier(self.operation, shipID, affectedSkillID, self.modifiedAttributeID, affectingModuleID, self.modifyingAttributeID) 128 129 def RestrictedStop(self, env, dogmaLM, itemID, shipID, charID, otherID, targetID): 130 affectedSkillID = env.itemTypeID 131 affectingModuleID = env.itemID 132 env.dogmaLM.RemoveLocationRequiredSkillModifier(self.operation, shipID, affectedSkillID, self.modifiedAttributeID, affectingModuleID, self.modifyingAttributeID) 133 134 135 class DroneDmgBonus(Effect): 136 __guid__ = 'dogmaXP.DroneDmgBonus' 137 __effectIDs__ = [1730] 138 isPythonEffect = True 139 __modifies_character__ = True 140 __modifies_ship__ = True 141 modifyingAttributeID = attributeDamageMultiplierBonus 142 modifiedAttributeID = attributeDamageMultiplier 143 operation = dgmAssPostPercent 144 145 def Start(self, env, dogmaLM, itemID, shipID, charID, otherID, targetID): 146 affectedSkillID = env.itemTypeID 147 affectingModuleID = env.itemID 148 env.dogmaLM.AddOwnerRequiredSkillModifier(self.operation, charID, affectedSkillID, self.modifiedAttributeID, affectingModuleID, self.modifyingAttributeID) 149 150 def Stop(self, env, dogmaLM, itemID, shipID, charID, otherID, targetID): 151 affectedSkillID = env.itemTypeID 152 affectingModuleID = env.itemID 153 env.dogmaLM.RemoveOwnerRequiredSkillModifier(self.operation, charID, affectedSkillID, self.modifiedAttributeID, affectingModuleID, self.modifyingAttributeID) 154 155 def RestrictedStop(self, env, dogmaLM, itemID, shipID, charID, otherID, targetID): 156 affectedSkillID = env.itemTypeID 157 affectingModuleID = env.itemID 158 env.dogmaLM.RemoveOwnerRequiredSkillModifier(self.operation, charID, affectedSkillID, self.modifiedAttributeID, affectingModuleID, self.modifyingAttributeID) 159 160 161 class SelfRof(Effect): 162 __guid__ = 'dogmaXP.SelfRof' 163 __effectIDs__ = [1851] 164 isPythonEffect = True 165 __modifier_only__ = True 166 __modifies_ship__ = True 167 modifyingAttributeID = attributeRofBonus 168 modifiedAttributeID = attributeRateOfFire 169 operation = dgmAssPostPercent 170 171 def Start(self, env, dogmaLM, itemID, shipID, charID, otherID, targetID): 172 affectedSkillID = env.itemTypeID 173 affectingModuleID = env.itemID 174 env.dogmaLM.AddLocationRequiredSkillModifier(self.operation, shipID, affectedSkillID, self.modifiedAttributeID, affectingModuleID, self.modifyingAttributeID) 175 176 def Stop(self, env, dogmaLM, itemID, shipID, charID, otherID, targetID): 177 affectedSkillID = env.itemTypeID 178 affectingModuleID = env.itemID 179 env.dogmaLM.RemoveLocationRequiredSkillModifier(self.operation, shipID, affectedSkillID, self.modifiedAttributeID, affectingModuleID, self.modifyingAttributeID) 180 181 def RestrictedStop(self, env, dogmaLM, itemID, shipID, charID, otherID, targetID): 182 affectedSkillID = env.itemTypeID 183 affectingModuleID = env.itemID 184 env.dogmaLM.RemoveLocationRequiredSkillModifier(self.operation, shipID, affectedSkillID, self.modifiedAttributeID, affectingModuleID, self.modifyingAttributeID) 185 186 187 class TargetPassively(Effect): 188 __guid__ = 'dogmaXP.TargetPassively' 189 __effectIDs__ = [54] 190 isPythonEffect = True 191 192 def Start(self, env, dogmaLM, itemID, shipID, charID, otherID, targetID): 193 dogmaLM.AddTargetEx(shipID, targetID, silent=1, tasklet=1) 194 195 def Stop(self, env, dogmaLM, itemID, shipID, charID, otherID, targetID): 196 return 1 197 198 def RestrictedStop(self, env, dogmaLM, itemID, shipID, charID, otherID, targetID): 199 return 1 200 201 202 class ArmorRepairForEntities(Effect): 203 __guid__ = 'dogmaXP.ArmorRepairForEntities' 204 __effectIDs__ = [878] 205 isPythonEffect = True 206 207 def Start(self, env, dogmaLM, itemID, shipID, charID, otherID, targetID): 208 dogmaLM.DecreaseItemAttribute(itemID, attributeArmorDamage, itemID, attributeEntityArmorRepairAmount) 209 210 def Stop(self, env, dogmaLM, itemID, shipID, charID, otherID, targetID): 211 return 1 212 213 def RestrictedStop(self, env, dogmaLM, itemID, shipID, charID, otherID, targetID): 214 return 1 215 216 217 class ShieldBoostingEffect(Effect): 218 __guid__ = 'dogmaXP.EntityShieldBoosting' 219 __effectIDs__ = [876, 220 2192, 221 2193, 222 2194] 223 isPythonEffect = True 224 225 def Start(self, env, dogmaLM, itemID, shipID, charID, otherID, targetID): 226 dogmaLM.IncreaseItemAttribute(itemID, attributeShieldCharge, itemID, attributeEntityShieldBoostAmount) 227 228 def Stop(self, env, dogmaLM, itemID, shipID, charID, otherID, targetID): 229 return 1 230 231 def RestrictedStop(self, env, dogmaLM, itemID, shipID, charID, otherID, targetID): 232 return 1 233 234 235 class ArmorRepairingEffect(Effect): 236 __guid__ = 'dogmaXP.EntityArmorRepairing' 237 __effectIDs__ = [2195, 2196, 2197] 238 isPythonEffect = True 239 240 def Start(self, env, dogmaLM, itemID, shipID, charID, otherID, targetID): 241 dogmaLM.DecreaseItemAttribute(itemID, attributeArmorDamage, itemID, attributeEntityArmorRepairAmount) 242 243 def Stop(self, env, dogmaLM, itemID, shipID, charID, otherID, targetID): 244 return 1 245 246 def RestrictedStop(self, env, dogmaLM, itemID, shipID, charID, otherID, targetID): 247 return 1