From f09371ee78821cc3fe8ecdfc1b4c4f46ebbf29aa Mon Sep 17 00:00:00 2001 From: BlackDog86 <122568778+BlackDog86@users.noreply.github.com> Date: Tue, 19 Dec 2023 11:39:10 +0000 Subject: [PATCH] Added X2Effect_Pillar & updated x2proj. --- .../Src/XComGame/Classes/X2Effect_Pillar.uc | 16 ++++++++++++++++ .../X2WOTCCommunityHighlander.x2proj | 3 +++ 2 files changed, 19 insertions(+) create mode 100644 X2WOTCCommunityHighlander/Src/XComGame/Classes/X2Effect_Pillar.uc diff --git a/X2WOTCCommunityHighlander/Src/XComGame/Classes/X2Effect_Pillar.uc b/X2WOTCCommunityHighlander/Src/XComGame/Classes/X2Effect_Pillar.uc new file mode 100644 index 000000000..287f40b4f --- /dev/null +++ b/X2WOTCCommunityHighlander/Src/XComGame/Classes/X2Effect_Pillar.uc @@ -0,0 +1,16 @@ +class X2Effect_Pillar extends X2Effect_SpawnDestructible; + +function int GetStartingNumTurns(const out EffectAppliedData ApplyEffectParameters) +{ + local XComGameState_Unit SourceUnit; + + SourceUnit = XComGameState_Unit(`XCOMHISTORY.GetGameStateForObjectID(ApplyEffectParameters.SourceStateObjectRef.ObjectID)); + return SourceUnit.GetTemplarFocusLevel(); +} + +DefaultProperties +{ + EffectName = "Pillar" + DuplicateResponse = eDupe_Allow + bDestroyOnRemoval = true +} \ No newline at end of file diff --git a/X2WOTCCommunityHighlander/X2WOTCCommunityHighlander.x2proj b/X2WOTCCommunityHighlander/X2WOTCCommunityHighlander.x2proj index 25d28fa8a..96e78a558 100644 --- a/X2WOTCCommunityHighlander/X2WOTCCommunityHighlander.x2proj +++ b/X2WOTCCommunityHighlander/X2WOTCCommunityHighlander.x2proj @@ -583,6 +583,9 @@ Content + + Content + Content