Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
class OPTC_CurbInfiniteActionEconomy extends X2DownloadableContentInfo;


static event OnPostTemplatesCreated()
{
local X2AbilityTemplateManager TemplateMgr;
local X2AbilityTemplate Template;
local X2Effect_SerialCritReduction SerialCritReduction;

TemplateMgr = class'X2AbilityTemplateManager'.static.GetAbilityTemplateManager();

Template = TemplateMgr.FindAbilityTemplate('ShadowOps_SlamFire');
if (Template != none)
{
SerialCritReduction = new class 'X2Effect_SerialCritReduction';
SerialCritReduction.BuildPersistentEffect(1, false, true, false, eGameRule_PlayerTurnEnd);
SerialCritReduction.CritReductionPerKill = class'LWTemplateMods'.default.SERIAL_CRIT_MALUS_PER_KILL;
SerialCritReduction.AimReductionPerKill = class'LWTemplateMods'.default.SERIAL_AIM_MALUS_PER_KILL;
SerialCritReduction.Damage_Falloff = class'LWTemplateMods'.default.SERIAL_DAMAGE_FALLOFF;
SerialCritReduction.SetDisplayInfo(ePerkBuff_Passive, Template.LocFriendlyName, Template.GetMyHelpText(), Template.IconImage, true,, Template.AbilitySourceName);
SerialCritReduction.EffectName = 'SerialCritReduction';
Template.AbilityTargetEffects.AddItem(SerialCritReduction);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ static function CHEventListenerTemplate CreateRNFListeners()
`CREATE_X2TEMPLATE(class'CHEventListenerTemplate', Template, 'TedJamReinforcementListeners');
Template.AddCHEvent('GetReinforcementValue', GetInfilReinforcementValue, ELD_Immediate);
Template.AddCHEvent('PlayerTurnEnded', RollForPerTurnWillLossUnderinfil, ELD_OnStateSubmitted, 90);
Template.AddCHEvent('SlamFire', class'X2EventListener_Soldiers'.static.OnSerialKill, ELD_OnStateSubmitted);

Template.RegisterInStrategy = false;
Template.RegisterInTactical = True;
Expand Down
1 change: 1 addition & 0 deletions TedModJamForLWOTC/TedModJamForLWOTC.x2proj
Original file line number Diff line number Diff line change
Expand Up @@ -1347,6 +1347,7 @@
<Content Include="Src\TedModJamForLWOTC\Classes\OPTC_ChosenKidnap.uc">
<SubType>Content</SubType>
</Content>
<Content Include="Src\TedModJamForLWOTC\Classes\OPTC_CurbInfiniteActionEconomy.uc">
<Content Include="Src\TedModJamForLWOTC\Classes\OPTC_CursedEntourage.uc">
<SubType>Content</SubType>
</Content>
Expand Down