Eject mech pilot alert (#31649)

* Bruh

* well

* yes
This commit is contained in:
Gorox221
2024-09-13 17:01:26 +03:00
committed by GitHub
parent 9d56a805ee
commit f30bec53df
2 changed files with 7 additions and 2 deletions

View File

@@ -211,8 +211,11 @@ public sealed partial class MechSystem : SharedMechSystem
return;
}
var doAfterEventArgs = new DoAfterArgs(EntityManager, args.User, component.ExitDelay,
new MechExitEvent(), uid, target: uid);
var doAfterEventArgs = new DoAfterArgs(EntityManager, args.User, component.ExitDelay, new MechExitEvent(), uid, target: uid)
{
BreakOnMove = true,
};
_popup.PopupEntity(Loc.GetString("mech-eject-pilot-alert", ("item", uid), ("user", args.User)), uid, PopupType.Large);
_doAfter.TryStartDoAfter(doAfterEventArgs);
}