Nuke anchor fixes + cargo sell blacklist (#10286)
This commit is contained in:
@@ -140,6 +140,13 @@ namespace Content.Server.Nuke
|
||||
private void OnAnchorChanged(EntityUid uid, NukeComponent component, ref AnchorStateChangedEvent args)
|
||||
{
|
||||
UpdateUserInterface(uid, component);
|
||||
|
||||
if (args.Anchored == false && component.Status == NukeStatus.ARMED && component.RemainingTime > component.DisarmDoafterLength)
|
||||
{
|
||||
// yes, this means technically if you can find a way to unanchor the nuke, you can disarm it
|
||||
// without the doafter. but that takes some effort, and it won't allow you to disarm a nuke that can't be disarmed by the doafter.
|
||||
DisarmBomb(uid, component);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user