@title Provocateur COM (Unreleased Ixora Operative COM)
@version 1.0.1
@author Apocalyptech
@contact https://apocalyptech.com/contact.php
@categories gear-com

@license Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)
@license-url https://creativecommons.org/licenses/by-sa/4.0/

@screenshot https://raw.githubusercontent.com/BLCM/bl3mods/master/Apocalyptech/gear_changes/provocateur_com/screenshot.png

###
### The Designer's Cut DLC (Ixora) data included an unreleased/unfinished
### second Operative COM, to go along with the Spy COM.  With just a bit of
### tweaking, the unreleased mod can be fixed up to operate as-advertised
### on the COM text, so that's what this mod does.  The COM does not have a
### name defined anywhere in the game data, so this mod assigns it the name
### 'Provocateur'.
###
### From the on-card COM description: "Whenever Zane scores a Critical Hit
### he has a 10% chance to activate all kill skills twice.  Additionally, his
### kill skills last an additional 8 seconds."
###
### This mod makes use of a naming part taken from another unreleased bit of
### gear, the 'Portals and Shite,' a completely-unimplemented named Atlas
### AR which has nothing special about it apart from the name.  If any other
### mods end up using the Portals and Shite naming part as well, this mod
### won't be fully compatible with it.
###
### This mod also adds the Provocateur to the relevant drop pools, so it
### should be gettable from any source which would ordinarily drop the Spy.
### The probability of Spy was dropped a little bit to make room for the
### new COM, without diluting the rest of the pools too much (Spy and
### Provocateur are equally-likely drops).
###
### Generated by gen_provocateur_com.py
###

###
### Add a name to the COM
###

SparkPatchEntry,(1,1,0,),/Game/Gear/Weapons/AssaultRifles/Atlas/_Shared/_Design/_Unique/Portal/Name_ATL_AR_Portals.Name_ATL_AR_Portals,PartName,0,,Provocateur
SparkPatchEntry,(1,1,0,),/Game/PatchDLC/Ixora/Gear/_GearExtension/NamingStrategies/NamingStrategyExtension_Ixora_CM_Operative.NamingStrategyExtension_Ixora_CM_Operative,SingleNames,0,,((Part=BPInvPart_ClassMod_C'"/Game/PatchDLC/Ixora/Gear/ClassMods/_Design/OPE/L01/Part_CM_Ixora_OPE_L01.Part_CM_Ixora_OPE_L01"',NamePart=InventoryNamePartData'"/Game/PatchDLC/Ixora/Gear/_GearExtension/NamingStrategies/NamingStrategyExtension_Ixora_CM_Operative.NamingStrategyExtension_Ixora_CM_Operative:NamePart_InventoryNamePartData"'),(Part=BPInvPart_ClassMod_C'"/Game/PatchDLC/Ixora/Gear/ClassMods/_Design/OPE/PartSets/ClassMod_Part_Mod_Operative_Ixora_01.ClassMod_Part_Mod_Operative_Ixora_01"',NamePart=InventoryNamePartData'"/Game/PatchDLC/Ixora/Gear/_GearExtension/NamingStrategies/NamingStrategyExtension_Ixora_CM_Operative.NamingStrategyExtension_Ixora_CM_Operative:NamePart_InventoryNamePartData_1"'),(Part=BPInvPart_ClassMod_C'"/Game/PatchDLC/Ixora/Gear/ClassMods/_Design/OPE/Skills/CM_Part_Skill_OPE_DLCSkill_12.CM_Part_Skill_OPE_DLCSkill_12"',NamePart=InventoryNamePartData'"/Game/PatchDLC/Ixora/Gear/_GearExtension/NamingStrategies/NamingStrategyExtension_Ixora_CM_Operative.NamingStrategyExtension_Ixora_CM_Operative:NamePart_InventoryNamePartData_2"'),(Part=BPInvPart_ClassMod_C'"/Game/PatchDLC/Ixora/Gear/ClassMods/_Design/OPE/L02/Part_CM_Ixora_OPE_L02.Part_CM_Ixora_OPE_L02"',NamePart=InventoryNamePartData'"/Game/Gear/Weapons/AssaultRifles/Atlas/_Shared/_Design/_Unique/Portal/Name_ATL_AR_Portals.Name_ATL_AR_Portals"'))

###
### Red Text
###

SparkPatchEntry,(1,1,0,),/Game/PatchDLC/Ixora/Gear/ClassMods/_Design/OPE/L02/UIText_CM_Ixora_OPE_L02_RedText.UIText_CM_Ixora_OPE_L02_RedText,Text,0,,[flavor]First you have to know -- not fear -- know that someday you're gonna die.[/flavor]

###
### Tweak activation chance to match description
###

SparkPatchEntry,(1,1,0,),/Game/PatchDLC/Ixora/Gear/ClassMods/_Design/OPE/L02/Ability_CM_Ixora_OPE_L02.Default__Ability_CM_Ixora_OPE_L02_C,Chance.RowName,0,,OperativeL02
SparkPatchEntry,(1,2,0,),/Game/PatchDLC/Ixora/Gear/ClassMods/_Design/Table_CM_Ixora.Table_CM_Ixora,OperativeL02,Value_B_5_AC44446B4200DFD2A654AC85CC59B4B0,0,,0.1

###
### Fix kill-skill duration boost
###

SparkPatchEntry,(1,1,0,),/Game/PatchDLC/Ixora/Gear/ClassMods/_Design/OPE/L02/Ability_CM_Ixora_OPE_L02.Default__Ability_CM_Ixora_OPE_L02_C,AbilityEffects.AbilityEffects[0].StatusEffectData,0,,StatusEffectData'"/Game/PatchDLC/Ixora/Gear/ClassMods/_Design/OPE/L02/StatusEffect_CM_Ixora_L02_OPE.StatusEffect_CM_Ixora_L02_OPE"'
SparkPatchEntry,(1,2,0,),/Game/PatchDLC/Ixora/Gear/ClassMods/_Design/Table_CM_Ixora.Table_CM_Ixora,OperativeL02,Value_A_2_4C4DFC67484D02BA3DBB029A999F015E,0,,8

###
### Ensure card reports correct values
###

SparkPatchEntry,(1,1,0,),/Game/PatchDLC/Ixora/Gear/ClassMods/_Design/OPE/L02/UIStat_CM_Ixora_OPE_L02_Description.UIStat_CM_Ixora_OPE_L02_Description,Attribute,0,,GbxAttributeData'"/Game/PatchDLC/Ixora/Gear/ClassMods/_Design/OPE/L02/Att_CM_Ixora_OPE_L02_Chance.Att_CM_Ixora_OPE_L02_Chance"'
SparkPatchEntry,(1,1,0,),/Game/PatchDLC/Ixora/Gear/ClassMods/_Design/OPE/L02/UIStat_CM_Ixora_OPE_L02_Description.UIStat_CM_Ixora_OPE_L02_Description,SupplementalStat.Object..Initializer.BaseValueAttribute,0,,GbxAttributeData'"/Game/PatchDLC/Ixora/Gear/ClassMods/_Design/OPE/L02/Att_CM_Ixora_OPE_L02_Duration.Att_CM_Ixora_OPE_L02_Duration"'

# Also fix a minor grammatical error
SparkPatchEntry,(1,1,0,),/Game/PatchDLC/Ixora/Gear/ClassMods/_Design/OPE/L02/UIStat_CM_Ixora_OPE_L02_Description.UIStat_CM_Ixora_OPE_L02_Description,SupplementalStat.Object..FormatText,0,,Additionally, his kill skills last an additional [skillbold]$VALUE$ seconds[/skillbold].

###
### Add to drop pools
###

# ItemPool_GearUp_Event_Industry_Legendary
SparkLevelPatchEntry,(1,1,0,FrostSite_P),/Game/PatchDLC/Ixora/GameData/Loot/ItemPools/Chest/Event/ItemPool_GearUp_Event_Industry_Legendary.ItemPool_GearUp_Event_Industry_Legendary,BalancedItems,0,,((InventoryBalanceData=/Game/PatchDLC/Ixora/Gear/Weapons/_Unique/DarkArmy/Balance/Balance_SM_TED_DarkArmy.Balance_SM_TED_DarkArmy,ResolvedInventoryBalanceData=InventoryBalanceData'"/Game/PatchDLC/Ixora/Gear/Weapons/_Unique/DarkArmy/Balance/Balance_SM_TED_DarkArmy.Balance_SM_TED_DarkArmy"',Weight=(BaseValueConstant=1.0)),(InventoryBalanceData=/Game/PatchDLC/Ixora/Gear/Weapons/_Unique/PlasmaCoil/Balance/Balance_SM_MAL_PlasmaCoil.Balance_SM_MAL_PlasmaCoil,ResolvedInventoryBalanceData=InventoryBalanceData'"/Game/PatchDLC/Ixora/Gear/Weapons/_Unique/PlasmaCoil/Balance/Balance_SM_MAL_PlasmaCoil.Balance_SM_MAL_PlasmaCoil"',Weight=(BaseValueConstant=1.0)),(InventoryBalanceData=/Game/PatchDLC/Ixora/Gear/ClassMods/_Design/OPE/L01/InvBalD_CM_Ixora_OPE_L01.InvBalD_CM_Ixora_OPE_L01,ResolvedInventoryBalanceData=InventoryBalanceData'"/Game/PatchDLC/Ixora/Gear/ClassMods/_Design/OPE/L01/InvBalD_CM_Ixora_OPE_L01.InvBalD_CM_Ixora_OPE_L01"',Weight=(BaseValueConstant=1.0,BaseValueAttribute=GbxAttributeData'"/Game/GameData/Loot/CharacterWeighting/Att_CharacterWeight_Operative.Att_CharacterWeight_Operative"',BaseValueScale=0.666667)),(InventoryBalanceData=/Game/PatchDLC/Ixora/Gear/ClassMods/_Design/OPE/L02/InvBalD_CM_Ixora_OPE_L02.InvBalD_CM_Ixora_OPE_L02,ResolvedInventoryBalanceData=InventoryBalanceData'"/Game/PatchDLC/Ixora/Gear/ClassMods/_Design/OPE/L02/InvBalD_CM_Ixora_OPE_L02.InvBalD_CM_Ixora_OPE_L02"',Weight=(BaseValueConstant=1.0,BaseValueAttribute=GbxAttributeData'"/Game/GameData/Loot/CharacterWeighting/Att_CharacterWeight_Operative.Att_CharacterWeight_Operative"',BaseValueScale=0.666667)))

# ItemPool_Ixora_All_Legendary
SparkLevelPatchEntry,(1,1,0,FrostSite_P),/Game/PatchDLC/Ixora/GameData/Loot/ItemPools/ItemPool_Ixora_All_Legendary.ItemPool_Ixora_All_Legendary,BalancedItems,0,,((InventoryBalanceData=/Game/PatchDLC/Ixora/Gear/Weapons/_Unique/BinaryOperator/Balance/Balance_MAL_SR_BinaryOperator.Balance_MAL_SR_BinaryOperator,ResolvedInventoryBalanceData=InventoryBalanceData'"/Game/PatchDLC/Ixora/Gear/Weapons/_Unique/BinaryOperator/Balance/Balance_MAL_SR_BinaryOperator.Balance_MAL_SR_BinaryOperator"',Weight=(BaseValueConstant=1.0)),(InventoryBalanceData=/Game/PatchDLC/Ixora/Gear/Weapons/_Unique/Boogeyman/Balance/Balance_VLA_SR_Boogeyman.Balance_VLA_SR_Boogeyman,ResolvedInventoryBalanceData=InventoryBalanceData'"/Game/PatchDLC/Ixora/Gear/Weapons/_Unique/Boogeyman/Balance/Balance_VLA_SR_Boogeyman.Balance_VLA_SR_Boogeyman"',Weight=(BaseValueConstant=1.0)),(InventoryBalanceData=/Game/PatchDLC/Ixora/Gear/Weapons/_Unique/CriticalThug/Balance/Balance_SG_Torgue_CriticalThug.Balance_SG_Torgue_CriticalThug,ResolvedInventoryBalanceData=InventoryBalanceData'"/Game/PatchDLC/Ixora/Gear/Weapons/_Unique/CriticalThug/Balance/Balance_SG_Torgue_CriticalThug.Balance_SG_Torgue_CriticalThug"',Weight=(BaseValueConstant=1.0)),(InventoryBalanceData=/Game/PatchDLC/Ixora/Gear/Weapons/_Unique/Firefly/Balance/Balance_PS_VLA_Firefly.Balance_PS_VLA_Firefly,ResolvedInventoryBalanceData=InventoryBalanceData'"/Game/PatchDLC/Ixora/Gear/Weapons/_Unique/Firefly/Balance/Balance_PS_VLA_Firefly.Balance_PS_VLA_Firefly"',Weight=(BaseValueConstant=1.0)),(InventoryBalanceData=/Game/PatchDLC/Ixora/Gear/Weapons/_Unique/HotfootTeddy/Balance/Balance_AR_TOR_Hotfoot.Balance_AR_TOR_Hotfoot,ResolvedInventoryBalanceData=InventoryBalanceData'"/Game/PatchDLC/Ixora/Gear/Weapons/_Unique/HotfootTeddy/Balance/Balance_AR_TOR_Hotfoot.Balance_AR_TOR_Hotfoot"',Weight=(BaseValueConstant=1.0)),(InventoryBalanceData=/Game/PatchDLC/Ixora/Gear/Weapons/_Unique/PlasmaCoil/Balance/Balance_SM_MAL_PlasmaCoil.Balance_SM_MAL_PlasmaCoil,ResolvedInventoryBalanceData=InventoryBalanceData'"/Game/PatchDLC/Ixora/Gear/Weapons/_Unique/PlasmaCoil/Balance/Balance_SM_MAL_PlasmaCoil.Balance_SM_MAL_PlasmaCoil"',Weight=(BaseValueConstant=1.0)),(InventoryBalanceData=/Game/PatchDLC/Ixora/Gear/Weapons/_Unique/SpiritOfMaya/Balance/Balance_PS_ATL_SpiritOfMaya.Balance_PS_ATL_SpiritOfMaya,ResolvedInventoryBalanceData=InventoryBalanceData'"/Game/PatchDLC/Ixora/Gear/Weapons/_Unique/SpiritOfMaya/Balance/Balance_PS_ATL_SpiritOfMaya.Balance_PS_ATL_SpiritOfMaya"',Weight=(BaseValueConstant=1.0)),(InventoryBalanceData=/Game/PatchDLC/Ixora/Gear/Artifacts/_Design/_Unique/Deathrattle/Balance/InvBalD_Artifact_Deathrattle.InvBalD_Artifact_Deathrattle,ResolvedInventoryBalanceData=InventoryBalanceData'"/Game/PatchDLC/Ixora/Gear/Artifacts/_Design/_Unique/Deathrattle/Balance/InvBalD_Artifact_Deathrattle.InvBalD_Artifact_Deathrattle"',Weight=(BaseValueConstant=1.0)),(InventoryBalanceData=/Game/PatchDLC/Ixora/Gear/GrenadeMods/HOTSpring/Balance/InvBalD_GM_HOTSpring.InvBalD_GM_HOTSpring,ResolvedInventoryBalanceData=InventoryBalanceData'"/Game/PatchDLC/Ixora/Gear/GrenadeMods/HOTSpring/Balance/InvBalD_GM_HOTSpring.InvBalD_GM_HOTSpring"',Weight=(BaseValueConstant=1.0)),(InventoryBalanceData=/Game/PatchDLC/Ixora/Gear/Shields/_Unique/Beskar/Balance/InvBalD_Shield_Beskar.InvBalD_Shield_Beskar,ResolvedInventoryBalanceData=InventoryBalanceData'"/Game/PatchDLC/Ixora/Gear/Shields/_Unique/Beskar/Balance/InvBalD_Shield_Beskar.InvBalD_Shield_Beskar"',Weight=(BaseValueConstant=1.0)),(InventoryBalanceData=/Game/PatchDLC/Ixora/Gear/Shields/_Unique/MadCap/Balance/InvBalD_Shield_LGD_Madcap.InvBalD_Shield_LGD_Madcap,ResolvedInventoryBalanceData=InventoryBalanceData'"/Game/PatchDLC/Ixora/Gear/Shields/_Unique/MadCap/Balance/InvBalD_Shield_LGD_Madcap.InvBalD_Shield_LGD_Madcap"',Weight=(BaseValueConstant=1.0)),(InventoryBalanceData=/Game/PatchDLC/Ixora/Gear/Shields/_Unique/Ventilator/Balance/InvBalD_Shield_Ventilator.InvBalD_Shield_Ventilator,ResolvedInventoryBalanceData=InventoryBalanceData'"/Game/PatchDLC/Ixora/Gear/Shields/_Unique/Ventilator/Balance/InvBalD_Shield_Ventilator.InvBalD_Shield_Ventilator"',Weight=(BaseValueConstant=1.0)),(InventoryBalanceData=/Game/PatchDLC/Ixora/Gear/Weapons/_Unique/Trickshot/Balance/Balance_PS_JAK_Trickshot.Balance_PS_JAK_Trickshot,ResolvedInventoryBalanceData=InventoryBalanceData'"/Game/PatchDLC/Ixora/Gear/Weapons/_Unique/Trickshot/Balance/Balance_PS_JAK_Trickshot.Balance_PS_JAK_Trickshot"',Weight=(BaseValueConstant=1.0)),(InventoryBalanceData=/Game/PatchDLC/Ixora/Gear/Weapons/_Unique/DarkArmy/Balance/Balance_SM_TED_DarkArmy.Balance_SM_TED_DarkArmy,ResolvedInventoryBalanceData=InventoryBalanceData'"/Game/PatchDLC/Ixora/Gear/Weapons/_Unique/DarkArmy/Balance/Balance_SM_TED_DarkArmy.Balance_SM_TED_DarkArmy"',Weight=(BaseValueConstant=1.0)),(InventoryBalanceData=/Game/PatchDLC/Ixora/Gear/Artifacts/_Design/_Unique/HolyGrail/Balance/InvBalD_Artifact_HolyGrail.InvBalD_Artifact_HolyGrail,ResolvedInventoryBalanceData=InventoryBalanceData'"/Game/PatchDLC/Ixora/Gear/Artifacts/_Design/_Unique/HolyGrail/Balance/InvBalD_Artifact_HolyGrail.InvBalD_Artifact_HolyGrail"',Weight=(BaseValueConstant=1.0)),(InventoryBalanceData=/Game/PatchDLC/Ixora/Gear/Weapons/_Unique/Tizzy/Balance/Balance_PS_COV_Tizzy.Balance_PS_COV_Tizzy,ResolvedInventoryBalanceData=InventoryBalanceData'"/Game/PatchDLC/Ixora/Gear/Weapons/_Unique/Tizzy/Balance/Balance_PS_COV_Tizzy.Balance_PS_COV_Tizzy"',Weight=(BaseValueConstant=1.0)),(InventoryBalanceData=/Game/PatchDLC/Ixora/Gear/ClassMods/_Design/GUN/L01/InvBalD_CM_Ixora_GUN_L01.InvBalD_CM_Ixora_GUN_L01,ResolvedInventoryBalanceData=InventoryBalanceData'"/Game/PatchDLC/Ixora/Gear/ClassMods/_Design/GUN/L01/InvBalD_CM_Ixora_GUN_L01.InvBalD_CM_Ixora_GUN_L01"',Weight=(BaseValueConstant=1.0,BaseValueAttribute=GbxAttributeData'"/Game/GameData/Loot/CharacterWeighting/Att_CharacterWeight_Gunner.Att_CharacterWeight_Gunner"')),(InventoryBalanceData=/Game/PatchDLC/Ixora/Gear/ClassMods/_Design/BSM/L01/InvBalD_CM_Ixora_BSM_L01.InvBalD_CM_Ixora_BSM_L01,ResolvedInventoryBalanceData=InventoryBalanceData'"/Game/PatchDLC/Ixora/Gear/ClassMods/_Design/BSM/L01/InvBalD_CM_Ixora_BSM_L01.InvBalD_CM_Ixora_BSM_L01"',Weight=(BaseValueConstant=1.0,BaseValueAttribute=GbxAttributeData'"/Game/GameData/Loot/CharacterWeighting/Att_CharacterWeight_Beastmaster.Att_CharacterWeight_Beastmaster"')),(InventoryBalanceData=/Game/PatchDLC/Ixora/Gear/ClassMods/_Design/OPE/L01/InvBalD_CM_Ixora_OPE_L01.InvBalD_CM_Ixora_OPE_L01,ResolvedInventoryBalanceData=InventoryBalanceData'"/Game/PatchDLC/Ixora/Gear/ClassMods/_Design/OPE/L01/InvBalD_CM_Ixora_OPE_L01.InvBalD_CM_Ixora_OPE_L01"',Weight=(BaseValueConstant=1.0,BaseValueAttribute=GbxAttributeData'"/Game/GameData/Loot/CharacterWeighting/Att_CharacterWeight_Operative.Att_CharacterWeight_Operative"',BaseValueScale=0.666667)),(InventoryBalanceData=/Game/PatchDLC/Ixora/Gear/ClassMods/_Design/SRN/L01/InvBalD_CM_Ixora_SRN_L01.InvBalD_CM_Ixora_SRN_L01,ResolvedInventoryBalanceData=InventoryBalanceData'"/Game/PatchDLC/Ixora/Gear/ClassMods/_Design/SRN/L01/InvBalD_CM_Ixora_SRN_L01.InvBalD_CM_Ixora_SRN_L01"',Weight=(BaseValueConstant=1.0,BaseValueAttribute=GbxAttributeData'"/Game/GameData/Loot/CharacterWeighting/Att_CharacterWeight_Siren.Att_CharacterWeight_Siren"')),(InventoryBalanceData=/Game/PatchDLC/Ixora/Gear/Weapons/_Unique/Kickcharger/Balance/Balance_HW_VLA_ETech_Kickcharger.Balance_HW_VLA_ETech_Kickcharger,ResolvedInventoryBalanceData=InventoryBalanceData'"/Game/PatchDLC/Ixora/Gear/Weapons/_Unique/Kickcharger/Balance/Balance_HW_VLA_ETech_Kickcharger.Balance_HW_VLA_ETech_Kickcharger"',Weight=(BaseValueConstant=1.0)),(InventoryBalanceData=/Game/PatchDLC/Ixora/Gear/Artifacts/_Design/_Unique/Toboggan/Balance/InvBalD_Artifact_Toboggan.InvBalD_Artifact_Toboggan,ResolvedInventoryBalanceData=InventoryBalanceData'"/Game/PatchDLC/Ixora/Gear/Artifacts/_Design/_Unique/Toboggan/Balance/InvBalD_Artifact_Toboggan.InvBalD_Artifact_Toboggan"',Weight=(BaseValueConstant=1.0)),(InventoryBalanceData=/Game/PatchDLC/Ixora/Gear/Weapons/_Unique/Torrent/Balance/Balance_SM_DAL_Torrent.Balance_SM_DAL_Torrent,ResolvedInventoryBalanceData=InventoryBalanceData'"/Game/PatchDLC/Ixora/Gear/Weapons/_Unique/Torrent/Balance/Balance_SM_DAL_Torrent.Balance_SM_DAL_Torrent"',Weight=(BaseValueConstant=1.0)),(InventoryBalanceData=/Game/PatchDLC/Ixora/Gear/Shields/_Unique/InfernalWish/Balance/InvBalD_Shield_InfernalWish.InvBalD_Shield_InfernalWish,ResolvedInventoryBalanceData=InventoryBalanceData'"/Game/PatchDLC/Ixora/Gear/Shields/_Unique/InfernalWish/Balance/InvBalD_Shield_InfernalWish.InvBalD_Shield_InfernalWish"',Weight=(BaseValueConstant=1.0)),(InventoryBalanceData=/Game/PatchDLC/Ixora/Gear/ClassMods/_Design/OPE/L02/InvBalD_CM_Ixora_OPE_L02.InvBalD_CM_Ixora_OPE_L02,ResolvedInventoryBalanceData=InventoryBalanceData'"/Game/PatchDLC/Ixora/Gear/ClassMods/_Design/OPE/L02/InvBalD_CM_Ixora_OPE_L02.InvBalD_CM_Ixora_OPE_L02"',Weight=(BaseValueConstant=1.0,BaseValueAttribute=GbxAttributeData'"/Game/GameData/Loot/CharacterWeighting/Att_CharacterWeight_Operative.Att_CharacterWeight_Operative"',BaseValueScale=0.666667)))

# Expanded Legendary Pools Compatibility
SparkPatchEntry,(1,1,0,),/Game/Gear/ClassMods/_Design/ItemPools/ItemPool_ClassMods_Operative_05_Legendary.ItemPool_ClassMods_Operative_05_Legendary,BalancedItems.BalancedItems[6].Weight.BaseValueConstant,0,,1