From: takemysoult <143123247+takemysoult@users.noreply.github.com> Date: Sat, 30 Mar 2024 06:52:27 +0000 (+0300) Subject: up stimulants (no sleep) (#25886) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=97b390d35f503dd9bda35e0b3a6192b2a502d120;p=space-station-14.git up stimulants (no sleep) (#25886) * up stimulants (no sleep) * Update SharedSleepingSystem.cs --- diff --git a/Content.Shared/Bed/Sleep/SharedSleepingSystem.cs b/Content.Shared/Bed/Sleep/SharedSleepingSystem.cs index 4e4bc2c574..c6248c88f7 100644 --- a/Content.Shared/Bed/Sleep/SharedSleepingSystem.cs +++ b/Content.Shared/Bed/Sleep/SharedSleepingSystem.cs @@ -37,7 +37,7 @@ namespace Content.Server.Bed.Sleep _actionsSystem.AddAction(uid, ref component.WakeAction, WakeActionId, uid); // TODO remove hardcoded time. - _actionsSystem.SetCooldown(component.WakeAction, _gameTiming.CurTime, _gameTiming.CurTime + TimeSpan.FromSeconds(15)); + _actionsSystem.SetCooldown(component.WakeAction, _gameTiming.CurTime, _gameTiming.CurTime + TimeSpan.FromSeconds(2f)); } private void OnShutdown(EntityUid uid, SleepingComponent component, ComponentShutdown args) diff --git a/Resources/Prototypes/Reagents/narcotics.yml b/Resources/Prototypes/Reagents/narcotics.yml index d05cc29ab0..cefc8043b0 100644 --- a/Resources/Prototypes/Reagents/narcotics.yml +++ b/Resources/Prototypes/Reagents/narcotics.yml @@ -116,6 +116,13 @@ damage: types: Poison: 1 + - !type:AdjustReagent + conditions: + - !type:ReagentThreshold + reagent: ChloralHydrate + min: 1 + reagent: ChloralHydrate + amount: -10 - !type:GenericStatusEffect key: Stun time: 3 @@ -129,6 +136,10 @@ component: StaminaModifier time: 3 type: Add + - !type:GenericStatusEffect + key: ForcedSleep + time: 3 + type: Remove Medicine: metabolismRate: 1.0 effects: