Add custom wubble effect

This commit is contained in:
DarkPhoenix
2021-06-13 02:30:09 +03:00
parent fbd8d04f68
commit e3fef6f1a7
2 changed files with 24 additions and 0 deletions

View File

@@ -37512,3 +37512,17 @@ class Effect8157(BaseEffect):
fit.ship.boostItemAttr(
'shield{0}DamageResonance'.format(damageType), ship.getModifiedItemAttr('eliteBonusBlackOps2'),
skill='Black Ops', **kwargs)
class Effect1000000(BaseEffect):
type = 'passive', 'projected'
@staticmethod
def handler(fit, charge, context, projectionRange, **kwargs):
if 'projected' not in context:
return
if fit.ship.getModifiedItemAttr('disallowOffensiveModifiers'):
return
fit.ship.boostItemAttr('maxVelocity', charge.getModifiedItemAttr('speedFactor'),
stackingPenalties=True, **kwargs)