Nukie win conditions (#10220)
Co-authored-by: Kara <lunarautomaton6@gmail.com>
This commit is contained in:
@@ -519,7 +519,10 @@ namespace Content.Server.Nuke
|
||||
component.IntensitySlope,
|
||||
component.MaxIntensity);
|
||||
|
||||
RaiseLocalEvent(new NukeExplodedEvent());
|
||||
RaiseLocalEvent(new NukeExplodedEvent()
|
||||
{
|
||||
OwningStation = transform.GridUid,
|
||||
});
|
||||
|
||||
_soundSystem.StopStationEventMusic(component.Owner, StationEventMusicType.Nuke);
|
||||
EntityManager.DeleteEntity(uid);
|
||||
@@ -546,6 +549,7 @@ namespace Content.Server.Nuke
|
||||
{
|
||||
TargetCancelledEvent = new NukeDisarmCancelledEvent(),
|
||||
TargetFinishedEvent = new NukeDisarmSuccessEvent(),
|
||||
BroadcastFinishedEvent = new NukeDisarmSuccessEvent(),
|
||||
BreakOnDamage = true,
|
||||
BreakOnStun = true,
|
||||
BreakOnTargetMove = true,
|
||||
@@ -570,7 +574,10 @@ namespace Content.Server.Nuke
|
||||
}
|
||||
}
|
||||
|
||||
public sealed class NukeExplodedEvent : EntityEventArgs {}
|
||||
public sealed class NukeExplodedEvent : EntityEventArgs
|
||||
{
|
||||
public EntityUid? OwningStation;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Raised directed on the nuke when its disarm doafter is successful.
|
||||
|
||||
Reference in New Issue
Block a user