Add support for insurgency suppression bonus
This commit is contained in:
13
db_update.py
13
db_update.py
@@ -651,6 +651,16 @@ def update_db():
|
|||||||
effect.effectName = effectName
|
effect.effectName = effectName
|
||||||
item.effects[effectName] = effect
|
item.effects[effectName] = effect
|
||||||
|
|
||||||
|
def hardcodeSuppressionTackleRange():
|
||||||
|
beaconTypeID = 79839
|
||||||
|
attrMap = {
|
||||||
|
'warfareBuff1ID': 2405,
|
||||||
|
'warfareBuff1Value': 10}
|
||||||
|
effectMap = {100000: 'pyfaCustomSuppressionTackleRange'}
|
||||||
|
_hardcodeAttribs(beaconTypeID, attrMap)
|
||||||
|
_hardcodeEffects(beaconTypeID, effectMap)
|
||||||
|
|
||||||
|
|
||||||
def hardcodeShapash():
|
def hardcodeShapash():
|
||||||
shapashTypeID = 1000000
|
shapashTypeID = 1000000
|
||||||
_copyItem(srcName='Utu', tgtTypeID=shapashTypeID, tgtName='Shapash')
|
_copyItem(srcName='Utu', tgtTypeID=shapashTypeID, tgtName='Shapash')
|
||||||
@@ -794,8 +804,7 @@ def update_db():
|
|||||||
_hardcodeAttribs(cybeleTypeID, attrMap)
|
_hardcodeAttribs(cybeleTypeID, attrMap)
|
||||||
_hardcodeEffects(cybeleTypeID, effectMap)
|
_hardcodeEffects(cybeleTypeID, effectMap)
|
||||||
|
|
||||||
# hardcodeShapash()
|
hardcodeSuppressionTackleRange()
|
||||||
# hardcodeCybele()
|
|
||||||
|
|
||||||
eos.db.gamedata_session.commit()
|
eos.db.gamedata_session.commit()
|
||||||
eos.db.gamedata_engine.execute('VACUUM')
|
eos.db.gamedata_engine.execute('VACUUM')
|
||||||
|
|||||||
@@ -37,6 +37,20 @@ class DummyEffect(BaseEffect):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class Effect100000(BaseEffect):
|
||||||
|
|
||||||
|
runTime = 'early'
|
||||||
|
type = ('projected', 'passive', 'gang')
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def handler(fit, beacon, context, projectionRange, **kwargs):
|
||||||
|
if beacon.getModifiedItemAttr('warfareBuff1ID'):
|
||||||
|
value = beacon.getModifiedItemAttr('warfareBuff1Value')
|
||||||
|
id = beacon.getModifiedItemAttr('warfareBuff1ID')
|
||||||
|
if id:
|
||||||
|
fit.addCommandBonus(id, value, beacon, kwargs['effect'], 'early')
|
||||||
|
|
||||||
|
|
||||||
class Effect4(BaseEffect):
|
class Effect4(BaseEffect):
|
||||||
"""
|
"""
|
||||||
shieldBoosting
|
shieldBoosting
|
||||||
|
|||||||
@@ -124,8 +124,9 @@ class AddEnvironmentEffect(ContextMenuUnconditional):
|
|||||||
data.groups[_t('Sansha Incursion')] = self.getEffectBeacons(
|
data.groups[_t('Sansha Incursion')] = self.getEffectBeacons(
|
||||||
_t('ContextMenu|ProjectedEffectManipulation|Sansha Incursion'))
|
_t('ContextMenu|ProjectedEffectManipulation|Sansha Incursion'))
|
||||||
data.groups[_t('Triglavian Invasion')] = self.getInvasionBeacons()
|
data.groups[_t('Triglavian Invasion')] = self.getInvasionBeacons()
|
||||||
# data.groups[_t('Pirate Insurgency')] = self.getEffectBeacons(
|
data.groups[_t('Pirate Insurgency')] = self.getEffectBeacons(
|
||||||
# _t('ContextMenu|ProjectedEffectManipulation|Insurgency'))
|
_t('ContextMenu|ProjectedEffectManipulation|Insurgency'),
|
||||||
|
extra_garbage=(_t('ContextMenu|ProjectedEffectManipulation|Beacon'),))
|
||||||
return data
|
return data
|
||||||
|
|
||||||
def getEffectBeacons(self, *groups, extra_garbage=()):
|
def getEffectBeacons(self, *groups, extra_garbage=()):
|
||||||
@@ -176,7 +177,6 @@ class AddEnvironmentEffect(ContextMenuUnconditional):
|
|||||||
container.append(Entry(beacon.ID, beaconname, shortname))
|
container.append(Entry(beacon.ID, beaconname, shortname))
|
||||||
# Break loop on 1st result
|
# Break loop on 1st result
|
||||||
break
|
break
|
||||||
data.sort()
|
|
||||||
return data
|
return data
|
||||||
|
|
||||||
def getAbyssalWeather(self):
|
def getAbyssalWeather(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user