mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-19 06:28:40 +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>
128 lines
3.7 KiB
C#
128 lines
3.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-FileCopyrightText: 2025 gus <august.eymann@gmail.com>
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
using Content.Shared.Damage;
|
|
using Content.Shared.Damage.Prototypes;
|
|
using Content.Shared.Dataset;
|
|
using Content.Shared.FixedPoint;
|
|
using Content.Shared.Polymorph;
|
|
using Robust.Shared.Audio;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared._Goobstation.Devil;
|
|
|
|
[RegisterComponent]
|
|
public sealed partial class DevilComponent : Component
|
|
{
|
|
[DataField]
|
|
public List<EntProtoId> BaseDevilActions = new()
|
|
{
|
|
"ActionCreateContract",
|
|
"ActionShadowJaunt",
|
|
"ActionDevilGrip",
|
|
};
|
|
|
|
[DataField]
|
|
public List<EntityUid>? ActionEntities;
|
|
|
|
/// <summary>
|
|
/// The amount of souls or successful contracts the entity has.
|
|
/// </summary>
|
|
[DataField]
|
|
public int Souls;
|
|
|
|
[DataField]
|
|
public ProtoId<DevilBranchPrototype> DevilBranchPrototype = "BaseDevilBranch";
|
|
|
|
/// <summary>
|
|
/// The true name of the devil.
|
|
/// This is auto-generated from a list in the system.
|
|
/// </summary>
|
|
[DataField]
|
|
public string TrueName = string.Empty;
|
|
|
|
/// <summary>
|
|
/// The current power level of the devil.
|
|
/// </summary>
|
|
[DataField]
|
|
public DevilPowerLevel PowerLevel = 0;
|
|
|
|
/// <summary>
|
|
/// Sound effect played when summoning a contract.
|
|
/// </summary>
|
|
[DataField]
|
|
public SoundPathSpecifier FwooshPath = new ("/Audio/_Goobstation/Effects/fwoosh.ogg");
|
|
|
|
/// <summary>
|
|
/// When the true-name stun was last triggered
|
|
/// </summary>
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
public TimeSpan LastTriggeredTime;
|
|
|
|
/// <summary>
|
|
/// Minimum time between true-name triggers
|
|
/// </summary>
|
|
[DataField]
|
|
public TimeSpan CooldownDuration = TimeSpan.FromSeconds(30);
|
|
|
|
[DataField]
|
|
public ProtoId<DatasetPrototype> FirstNameTrue = new("names_devil_first");
|
|
|
|
[DataField]
|
|
public ProtoId<DatasetPrototype> LastNameTrue = new("names_devil_last");
|
|
|
|
/// <summary>
|
|
/// How much damage taken when a true name is spoken. Doubled if spoken by the chaplain.
|
|
/// </summary>
|
|
[DataField]
|
|
public DamageSpecifier DamageOnTrueName = new() {DamageDict = new Dictionary<string, FixedPoint2>() {{ "Holy", 15 }}};
|
|
|
|
/// <summary>
|
|
/// Holy action damage multiplier if done by the chaplain. Also effects stums.
|
|
/// </summary>
|
|
[DataField]
|
|
public float BibleUserDamageMultiplier = 2f;
|
|
|
|
/// <summary>
|
|
/// How long the Devil is stunned when their true name is spoken. Doubled if spoken by the chaplain.
|
|
/// </summary>
|
|
[DataField]
|
|
public TimeSpan ParalyzeDurationOnTrueName = TimeSpan.FromSeconds(4);
|
|
|
|
[ViewVariables(VVAccess.ReadOnly)]
|
|
public EntityUid? DevilGrip;
|
|
|
|
// abandom all hope, all ye who enter
|
|
|
|
[DataField]
|
|
public TimeSpan PossessionDuration = TimeSpan.FromSeconds(30);
|
|
|
|
[DataField]
|
|
public EntProtoId GripPrototype = "DevilGrip";
|
|
|
|
[DataField]
|
|
public EntProtoId ContractPrototype = "PaperDevilContract";
|
|
|
|
[DataField]
|
|
public EntProtoId RevivalContractPrototype = "PaperDevilContractRevival";
|
|
|
|
[DataField]
|
|
public EntProtoId PentagramEffectProto = "Pentagram";
|
|
|
|
[DataField]
|
|
public EntProtoId FireEffectProto = "FireEffect";
|
|
|
|
[DataField]
|
|
public EntProtoId JauntAnimationProto = "PolymorphShadowJauntAnimation";
|
|
|
|
[DataField]
|
|
public ProtoId<PolymorphPrototype> JauntEntityProto = "ShadowJaunt";
|
|
|
|
[DataField]
|
|
public ProtoId<DamageModifierSetPrototype> DevilDamageModifierSet = "DevilDealPositive";
|
|
}
|