2025-06-13 14:15:48 +03:00
|
|
|
namespace Content.Shared._CP14.MagicSpell.Components;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// If the user belongs to a religion, this spell can only be used within the area of influence of that religion
|
|
|
|
|
/// </summary>
|
2025-06-15 15:00:18 +03:00
|
|
|
[RegisterComponent, Access(typeof(CP14SharedMagicSystem))]
|
2025-06-13 14:15:48 +03:00
|
|
|
public sealed partial class CP14MagicEffectReligionRestrictedComponent : Component
|
|
|
|
|
{
|
2025-06-15 15:00:18 +03:00
|
|
|
/// <summary>
|
|
|
|
|
/// does not allow the spell to be used outside the god's area of influence
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField]
|
|
|
|
|
public bool OnlyInReligionZone = true;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// allows the spell to be used only on followers
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField]
|
|
|
|
|
public bool OnlyOnFollowers = false;
|
2025-06-13 14:15:48 +03:00
|
|
|
}
|