Nuke anchor fixes + cargo sell blacklist (#10286)

This commit is contained in:
Kara
2022-08-03 20:01:14 -07:00
committed by GitHub
parent 2a2ef4ac51
commit 5784c248ac
5 changed files with 27 additions and 4 deletions

View File

@@ -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