// SPDX-FileCopyrightText: 2025 Aviu00 <93730715+Aviu00@users.noreply.github.com> // SPDX-FileCopyrightText: 2025 Aviu00 // SPDX-FileCopyrightText: 2025 GoobBot // SPDX-FileCopyrightText: 2025 Solstice // SPDX-FileCopyrightText: 2025 SolsticeOfTheWinter // SPDX-FileCopyrightText: 2025 TheBorzoiMustConsume <197824988+TheBorzoiMustConsume@users.noreply.github.com> // SPDX-FileCopyrightText: 2025 gus // SPDX-FileCopyrightText: 2025 mikusssssss <153551970+mikusssssss@users.noreply.github.com> // // SPDX-License-Identifier: AGPL-3.0-or-later using Content.Shared.Damage; using Content.Shared.Damage.Prototypes; using Robust.Shared.GameStates; using Robust.Shared.Prototypes; using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom; namespace Content.Shared._Goobstation.Religion; [RegisterComponent, NetworkedComponent, AutoGenerateComponentState] public sealed partial class WeakToHolyComponent : Component { /// /// Should this entity take holy damage no matter what? /// [DataField, AutoNetworkedField] public bool AlwaysTakeHoly; /// /// Is the entity currently standing on a rune? /// [ViewVariables] public bool IsColliding; /// /// Duration between each heal tick. /// [DataField] public TimeSpan HealTickDelay = TimeSpan.FromSeconds(2); /// /// Used for passive healing. /// [ViewVariables] public TimeSpan NextPassiveHealTick; /// /// DeltaV - Was this critter already holy damagable? /// [DataField] public bool HadHolyWeakness = false; /// /// How much the entity is healed by runes each tick. /// [DataField] public DamageSpecifier HealAmount = new() { DamageDict = { ["Holy"] = -4, }, }; /// /// How much the entity is healed passively by each tick. /// [DataField] public DamageSpecifier PassiveAmount = new() { DamageDict = { ["Holy"] = -0.5, // if its less it dont work du to limb damage }, }; }