Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
Remove mensagem confusa do defib, porque é o melhor a fazer
Browse files Browse the repository at this point in the history
  • Loading branch information
rbertoche committed Oct 2, 2023
1 parent 1ba2f27 commit 72fd9d5
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Content.Server/Medical/DefibrillatorSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,15 @@ public void Zap(EntityUid uid, EntityUid target, EntityUid user, DefibrillatorCo
// notify them they're being revived.
if (mind.CurrentEntity != target)
{
_chatManager.TrySendInGameICMessage(uid, Loc.GetString("defibrillator-ghosted"),
InGameICChatType.Speak, true);
// This message is for the defib operator.
// It could inform them that the patient doesn't have a consciousness since it's ghosted
// but maybe no message is really the right move here because it may have succeeded
// and that would be what would happen had the defib attempt succeeded - no message.
// Also when the patient's ghost return to body there they will be alive as long as the
// body is still alive, so telling the operator to defib again may be wrong.
//
// _chatManager.TrySendInGameICMessage(uid, Loc.GetString("defibrillator-ghosted"),
// InGameICChatType.Speak, true);
_euiManager.OpenEui(new ReturnToBodyEui(mind, _mind), session);
}
}
Expand Down

0 comments on commit 72fd9d5

Please sign in to comment.