CatStation/Content.Server/Objectives/Components/SpiderChargeConditionComponent.cs
Голубь d15d16651f
Teleport scroll and ninja bomb whitelist and blacklist (#40758)
* Teleport scroll whitelist

* Stupid

* review

review

* Update dat_fukken_disk.yml

* NinjaWhitelist

* uuuupdate

* Update station_beacon.yml

* Update emergency_amber.yml

* Update Resources/Prototypes/Entities/Markers/warp_point.yml

Co-authored-by: Errant <35878406+Errant-4@users.noreply.github.com>

* request

* Revert tags

* Apply suggestions from code review

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>

---------

Co-authored-by: Errant <35878406+Errant-4@users.noreply.github.com>
Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
2026-06-30 22:47:15 +00:00

30 lines
958 B
C#

using Content.Server.Ninja.Systems;
using Content.Server.Objectives.Systems;
using Content.Shared.Whitelist;
namespace Content.Server.Objectives.Components;
/// <summary>
/// Requires that the player is a ninja and blew up their spider charge at its target location.
/// </summary>
[RegisterComponent, Access(typeof(NinjaConditionsSystem), typeof(SpiderChargeSystem), typeof(SpaceNinjaSystem))]
public sealed partial class SpiderChargeConditionComponent : Component
{
/// <summary>
/// Warp point that the spider charge has to target
/// </summary>
[DataField, ViewVariables(VVAccess.ReadWrite)]
public EntityUid? Target;
/// <summary>
/// Which points are in the list of valid bombing targets
/// </summary>
[DataField]
public EntityWhitelist? Whitelist;
/// <summary>
/// Which points are in the list of invalid bombing targets
/// </summary>
[DataField]
public EntityWhitelist? Blacklist;
}