mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-26 18:17:12 +03:00
<!-- This is a semi-strict format, you can add/remove sections as needed but the order/format should be kept the same Remove these comments before submitting --> <!-- Explain this PR in as much detail as applicable Some example prompts to consider: How might this affect the game? The codebase? What might be some alternatives to this? How/Who does this benefit/hurt [the game/codebase]? --> This PR ports https://github.com/Goob-Station/Goob-Station/pull/2409 https://github.com/Goob-Station/Goob-Station/pull/2591 https://github.com/Goob-Station/Goob-Station/pull/2599 This PR was initially intended to be merged into White Dream repo, so my changes are marked as WD edit. <!-- A list of everything you have to do before this PR is "complete" You probably won't have to complete everything before merging but it's good to leave future references --> - [ ] Port pain numbness - [ ] Port nullrods - [ ] Port tile movement --- <!-- This is default collapsed, readers click to expand it and see all your media The PR media section can get very large at times, so this is a good way to keep it clean The title is written using HTML tags The title must be within the <summary> tags or you won't see it --> <details><summary><h1>Media</h1></summary> <p>     </p> </details> --- <!-- You can add an author after the `🆑` to change the name that appears in the changelog (ex: `🆑 Death`) Leaving it blank will default to your GitHub display name This includes all available types for the changelog --> 🆑 - add: Ported Devil antag from Goobstation --------- Signed-off-by: Kai5 <68296202+Kai518@users.noreply.github.com> Signed-off-by: VMSolidus <evilexecutive@gmail.com> Co-authored-by: Solstice <solsticeofthewinter@gmail.com> Co-authored-by: VMSolidus <evilexecutive@gmail.com>
109 lines
2.7 KiB
C#
109 lines
2.7 KiB
C#
// SPDX-FileCopyrightText: 2025 GoobBot <uristmchands@proton.me>
|
|
// SPDX-FileCopyrightText: 2025 Solstice <solsticeofthewinter@gmail.com>
|
|
// SPDX-FileCopyrightText: 2025 SolsticeOfTheWinter <solsticeofthewinter@gmail.com>
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
using Content.Shared.Polymorph;
|
|
using Robust.Shared.Audio;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared._Goobstation.Devil.Condemned;
|
|
|
|
/// <summary>
|
|
/// Marks an entity as having sold their soul.
|
|
/// When you die, do NOT collect 200, do NOT pass go. Go directly to hell
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// This should *really* be two components.
|
|
/// </remarks>
|
|
[RegisterComponent]
|
|
public sealed partial class CondemnedComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// The current phase of the condemnation animation.
|
|
/// </summary>
|
|
[DataField]
|
|
public CondemnedPhase CurrentPhase = CondemnedPhase.Waiting;
|
|
|
|
/// <summary>
|
|
/// Who owns this entities soul
|
|
/// </summary>
|
|
[DataField]
|
|
public EntityUid? SoulOwner;
|
|
|
|
/// <summary>
|
|
/// The elapsed time of the phase.
|
|
/// </summary>
|
|
[DataField]
|
|
public float PhaseTimer;
|
|
|
|
/// <summary>
|
|
/// How long the hand effect will last
|
|
/// </summary>
|
|
[DataField]
|
|
public float HandDuration;
|
|
|
|
/// <summary>
|
|
/// Should the examine message show when examining someone with this component?
|
|
/// </summary>
|
|
[DataField("showExamine")]
|
|
public bool ShowExamineMessage = true;
|
|
|
|
/// <summary>
|
|
/// Is this entities soul owned, but not by a devil?
|
|
/// </summary>
|
|
[DataField]
|
|
public bool SoulOwnedNotDevil;
|
|
|
|
/// <summary>
|
|
/// Should this entity be sent to hell on death?
|
|
/// </summary>
|
|
[DataField]
|
|
public bool CondemnOnDeath;
|
|
|
|
/// <summary>
|
|
/// Was this target already weak to holy before becoming condemned?
|
|
/// </summary>
|
|
[DataField]
|
|
public bool WasWeakToHoly;
|
|
|
|
/// <summary>
|
|
/// Should movement be locked during the animation?
|
|
/// </summary>
|
|
[DataField]
|
|
public bool FreezeDuringCondemnation;
|
|
|
|
/// <summary>
|
|
/// Should this entity be banished (sent to limbo for several minutes) or should they just be deleted?
|
|
/// </summary>
|
|
[DataField]
|
|
public CondemnedBehavior CondemnedBehavior = CondemnedBehavior.Delete;
|
|
|
|
[DataField]
|
|
public EntProtoId PentagramProto = "Pentagram";
|
|
|
|
[DataField]
|
|
public EntProtoId HandProto = "HellHand";
|
|
|
|
[DataField]
|
|
public SoundPathSpecifier SoundEffect = new("/Audio/_Goobstation/Effects/earth_quake.ogg");
|
|
|
|
[DataField]
|
|
public ProtoId<PolymorphPrototype> BanishProto = "ShadowJaunt180";
|
|
}
|
|
|
|
public enum CondemnedPhase : byte
|
|
{
|
|
Waiting,
|
|
PentagramActive,
|
|
HandActive,
|
|
Complete
|
|
}
|
|
|
|
public enum CondemnedBehavior : byte
|
|
{
|
|
Delete,
|
|
Banish,
|
|
}
|