From 6198b86618649702d8a5d6fbc92934a29ec1a016 Mon Sep 17 00:00:00 2001 From: Ivan Rubinov Date: Wed, 19 Jun 2024 21:43:39 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B5=20=D1=84=D0=B8=D0=BA=D1=81=20?= =?UTF-8?q?=D0=B3=D0=BE=D0=B2=D0=BD=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Content.Shared/LieDown/SharedLieDownSystem.cs | 3 ++- Resources/Prototypes/Actions/liedown.yml | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 Resources/Prototypes/Actions/liedown.yml diff --git a/Content.Shared/LieDown/SharedLieDownSystem.cs b/Content.Shared/LieDown/SharedLieDownSystem.cs index 93a3fb52585..1645bc15153 100644 --- a/Content.Shared/LieDown/SharedLieDownSystem.cs +++ b/Content.Shared/LieDown/SharedLieDownSystem.cs @@ -104,7 +104,8 @@ private void SwitchActions(EntityUid uid) { _actions.AddAction(uid, ref standingComponent.LieDownActionEntity, standingComponent.LieDownAction); _actions.RemoveAction(uid, standingComponent.StandUpActionEntity); - } } + } + } /// /// When interacting with a lying down person, add ability to make him stand up. diff --git a/Resources/Prototypes/Actions/liedown.yml b/Resources/Prototypes/Actions/liedown.yml new file mode 100644 index 00000000000..2ad7ca710a2 --- /dev/null +++ b/Resources/Prototypes/Actions/liedown.yml @@ -0,0 +1,19 @@ +- type: entity + id: ActionStandUp + name: Stand Up + description: Toggles all glove actions on left click. Includes your doorjack, draining power, stunning enemies, downloading research and calling in a threat. + noSpawn: true + components: + - type: InstantAction + priority: -13 + event: !type:StandUpActionEvent {} + +- type: entity + id: ActionLieDown + name: Lie Down + description: Toggles all glove actions on left click. Includes your doorjack, draining power, stunning enemies, downloading research and calling in a threat. + noSpawn: true + components: + - type: InstantAction + priority: -13 + event: !type:LieDownActionEvent {}