-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
75 changed files
with
1,597 additions
and
430 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
75 changes: 75 additions & 0 deletions
75
Content.Server/ADT/Heretic/Abilities/HereticAbilitySystem.Blade.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
using Content.Server.Heretic.Components.PathSpecific; | ||
using Content.Shared.Body.Part; | ||
using Content.Shared.Damage.Components; | ||
using Content.Shared.Heretic; | ||
using Content.Shared.Slippery; | ||
|
||
namespace Content.Server.Heretic.Abilities; | ||
|
||
public sealed partial class HereticAbilitySystem : EntitySystem | ||
{ | ||
private void SubscribeBlade() | ||
{ | ||
SubscribeLocalEvent<HereticComponent, HereticDanceOfTheBrandEvent>(OnDanceOfTheBrand); | ||
SubscribeLocalEvent<HereticComponent, EventHereticRealignment>(OnRealignment); | ||
SubscribeLocalEvent<HereticComponent, HereticChampionStanceEvent>(OnChampionStance); | ||
SubscribeLocalEvent<HereticComponent, EventHereticFuriousSteel>(OnFuriousSteel); | ||
|
||
SubscribeLocalEvent<HereticComponent, HereticAscensionBladeEvent>(OnAscensionBlade); | ||
} | ||
|
||
private void OnDanceOfTheBrand(Entity<HereticComponent> ent, ref HereticDanceOfTheBrandEvent args) | ||
{ | ||
EnsureComp<RiposteeComponent>(ent); | ||
} | ||
private void OnRealignment(Entity<HereticComponent> ent, ref EventHereticRealignment args) | ||
{ | ||
if (!TryUseAbility(ent, args)) | ||
return; | ||
|
||
_statusEffect.TryRemoveStatusEffect(ent, "Stun"); | ||
_statusEffect.TryRemoveStatusEffect(ent, "KnockedDown"); | ||
_statusEffect.TryRemoveStatusEffect(ent, "ForcedSleep"); | ||
_statusEffect.TryRemoveStatusEffect(ent, "Drowsiness"); | ||
|
||
if (TryComp<StaminaComponent>(ent, out var stam)) | ||
{ | ||
if (stam.StaminaDamage >= stam.CritThreshold) | ||
{ | ||
_stam.ExitStamCrit(ent, stam); | ||
} | ||
|
||
stam.StaminaDamage = 0; | ||
RemComp<ActiveStaminaComponent>(ent); | ||
Dirty(ent, stam); | ||
} | ||
|
||
_statusEffect.TryAddStatusEffect(ent, "Pacified", TimeSpan.FromSeconds(10f), true); | ||
|
||
args.Handled = true; | ||
} | ||
|
||
private void OnChampionStance(Entity<HereticComponent> ent, ref HereticChampionStanceEvent args) | ||
{ | ||
|
||
EnsureComp<ChampionStanceComponent>(ent); | ||
} | ||
private void OnFuriousSteel(Entity<HereticComponent> ent, ref EventHereticFuriousSteel args) | ||
{ | ||
if (!TryUseAbility(ent, args)) | ||
return; | ||
|
||
for (int i = 0; i < 3; i++) | ||
_pblade.AddProtectiveBlade(ent); | ||
|
||
args.Handled = true; | ||
} | ||
|
||
private void OnAscensionBlade(Entity<HereticComponent> ent, ref HereticAscensionBladeEvent args) | ||
{ | ||
EnsureComp<NoSlipComponent>(ent); // epic gamer move | ||
RemComp<StaminaComponent>(ent); // no stun | ||
|
||
EnsureComp<SilverMaelstromComponent>(ent); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
Content.Server/ADT/Heretic/Abilities/HereticAbilitySystem.Lock.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using Content.Shared.Heretic; | ||
|
||
namespace Content.Server.Heretic.Abilities; | ||
|
||
public sealed partial class HereticAbilitySystem : EntitySystem | ||
{ | ||
private void SubscribeLock() | ||
{ | ||
SubscribeLocalEvent<HereticComponent, EventHereticBulglarFinesse>(OnBulglarFinesse); | ||
SubscribeLocalEvent<HereticComponent, EventHereticLastRefugee>(OnLastRefugee); | ||
// add eldritch id here | ||
|
||
SubscribeLocalEvent<HereticComponent, HereticAscensionLockEvent>(OnAscensionLock); | ||
} | ||
|
||
private void OnBulglarFinesse(Entity<HereticComponent> ent, ref EventHereticBulglarFinesse args) | ||
{ | ||
|
||
} | ||
private void OnLastRefugee(Entity<HereticComponent> ent, ref EventHereticLastRefugee args) | ||
{ | ||
|
||
} | ||
|
||
private void OnAscensionLock(Entity<HereticComponent> ent, ref HereticAscensionLockEvent args) | ||
{ | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +0,0 @@ | ||
namespace Content.Server.Heretic.Components; | ||
|
||
[RegisterComponent] | ||
public sealed partial class AristocratComponent : Component | ||
{ | ||
public float UpdateTimer = 0f; | ||
[DataField] public float UpdateDelay = 1.5f; | ||
[DataField] public float Range = 2.5f; | ||
} | ||
8 changes: 8 additions & 0 deletions
8
Content.Server/ADT/Heretic/Components/MansusInfusedComponent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace Content.Server.Heretic.Components; | ||
|
||
[RegisterComponent] | ||
public sealed partial class MansusInfusedComponent : Component | ||
{ | ||
[DataField] public float MaxCharges = 5f; | ||
[ViewVariables(VVAccess.ReadWrite)] public float AvailableCharges = 5f; | ||
} |
Oops, something went wrong.