mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-30 08:07:28 +00:00
* move spider charge target from role
* shorter field names
* remove ninja role comment
* remove unused systems in SpaceNinjaSystem
* GenericAntagObjectivesAddedEvent
* check if warp point is on same map
* remove unnecessary import
* add missing loc when spider charge has no target
* a
* remove spider charge target requirement comp
* inline SpiderChargeTitle
* allow planting charge without objective
* remove map check
* fix role check when planting
* obj.Target
* Fix merge
---------
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
(cherry picked from commit 7311ce671f)
21 lines
693 B
C#
21 lines
693 B
C#
using Content.Server.Ninja.Systems;
|
|
using Content.Server.Objectives.Systems;
|
|
|
|
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
|
|
{
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
|
public bool Detonated;
|
|
|
|
/// <summary>
|
|
/// Warp point that the spider charge has to target
|
|
/// </summary>
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
|
public EntityUid? Target;
|
|
}
|