The nuke must be anchored to arm. (#9898)
This commit is contained in:
@@ -106,7 +106,7 @@ namespace Content.Client.Nuke
|
|||||||
EjectButton.Disabled = !state.DiskInserted || state.Status == NukeStatus.ARMED;
|
EjectButton.Disabled = !state.DiskInserted || state.Status == NukeStatus.ARMED;
|
||||||
AnchorButton.Disabled = state.Status == NukeStatus.ARMED;
|
AnchorButton.Disabled = state.Status == NukeStatus.ARMED;
|
||||||
AnchorButton.Pressed = state.IsAnchored;
|
AnchorButton.Pressed = state.IsAnchored;
|
||||||
ArmButton.Disabled = !state.AllowArm;
|
ArmButton.Disabled = !state.AllowArm || !state.IsAnchored;
|
||||||
}
|
}
|
||||||
|
|
||||||
private string VisualizeCode(int codeLength, int maxLength)
|
private string VisualizeCode(int codeLength, int maxLength)
|
||||||
|
|||||||
@@ -202,7 +202,7 @@ namespace Content.Server.Nuke
|
|||||||
if (!component.DiskSlot.HasItem)
|
if (!component.DiskSlot.HasItem)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (component.Status == NukeStatus.AWAIT_ARM)
|
if (component.Status == NukeStatus.AWAIT_ARM && Transform(uid).Anchored)
|
||||||
{
|
{
|
||||||
ArmBomb(uid, component);
|
ArmBomb(uid, component);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user