Add messages on cloner eject fail (#5846)

This commit is contained in:
wrexbe
2021-12-19 22:28:49 -08:00
committed by GitHub
parent 33a9d8d3ae
commit 06d5527772
2 changed files with 12 additions and 0 deletions

View File

@@ -160,6 +160,16 @@ namespace Content.Server.Cloning.Components
break; break;
case UiButton.Eject: case UiButton.Eject:
if (BodyContainer.ContainedEntity == null)
{
obj.Session.AttachedEntity.Value.PopupMessageCursor(Loc.GetString("cloning-pod-component-msg-empty"));
return;
}
if (CloningProgress < CloningTime)
{
obj.Session.AttachedEntity.Value.PopupMessageCursor(Loc.GetString("cloning-pod-component-msg-incomplete"));
return;
}
Eject(); Eject();
break; break;

View File

@@ -15,4 +15,6 @@ cloning-pod-component-msg-bad-selection = ERROR: Entry Removed During Selection
cloning-pod-component-msg-already-cloning = ERROR: Pod Network Conflict cloning-pod-component-msg-already-cloning = ERROR: Pod Network Conflict
cloning-pod-component-msg-already-alive = ERROR: Metaphysical Conflict cloning-pod-component-msg-already-alive = ERROR: Metaphysical Conflict
cloning-pod-component-msg-user-offline = ERROR: Metaphysical Disturbance cloning-pod-component-msg-user-offline = ERROR: Metaphysical Disturbance
cloning-pod-component-msg-incomplete = ERROR: Cloning in progress
cloning-pod-component-msg-empty = ERROR: The pod is empty