Skip to content

Commit

Permalink
Added X2Effect_Pillar & updated x2proj.
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackDog86 committed Feb 27, 2024
1 parent 7858d92 commit f09371e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
16 changes: 16 additions & 0 deletions X2WOTCCommunityHighlander/Src/XComGame/Classes/X2Effect_Pillar.uc
Original file line number Diff line number Diff line change
@@ -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
}
3 changes: 3 additions & 0 deletions X2WOTCCommunityHighlander/X2WOTCCommunityHighlander.x2proj
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,9 @@
<Content Include="Src\XComGame\Classes\X2Effect_LaserSight.uc">
<SubType>Content</SubType>
</Content>
<Content Include="Src\XComGame\Classes\X2Effect_Pillar.uc">
<SubType>Content</SubType>
</Content>
<Content Include="Src\XComGame\Classes\X2EncyclopediaTemplate.uc">
<SubType>Content</SubType>
</Content>
Expand Down

0 comments on commit f09371e

Please sign in to comment.